You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
782 B

- name: Mount /mnt/nextcloud
become: true
- name: create nextcloud dirs
become: true
file:
path: {{ item }}
state: directory
owner: pi
group: pi
mode: '0755'
loop:
- /mnt/nextcloud
- /mnt/nextclod/apps
- /mnt/nextcloud/html
- /mnt/nextcloud/data
- name: create clamav dir
become: true
file:
path: /opt/clamav
state: directory
owner: pi
group: pi
mode: '0755'
- name: Add Nextcloud mount to fstab
ansible.builtin.blockinfile:
path: /etc/fstab
marker: "# {mark} ANSIBLE MANAGED BLOCK nextcloud"
block: |
PARTUUID=6b61b9cb-01 /mnt/nextcloud ext4 defaults,noatime 0 1
ansible.posix.mount:
path: /mnt/nextcloud
state: mounted
fstype: ext4
src: PARTUUID=6b61b9cb-01