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.
27 lines
606 B
27 lines
606 B
- name: Abbrechen, wenn /mnt/nextcloud nicht gemountet ist
|
|
fail:
|
|
msg: "/mnt/nextcloud ist nicht gemountet – Playbook wird abgebrochen."
|
|
when: "'/mnt/nextcloud' not in (ansible_mounts | map(attribute='mount') | list)"
|
|
- name: create home dirs
|
|
file:
|
|
path: "~/{{ item }}"
|
|
state: directory
|
|
loop: "{{ homedirs }}"
|
|
|
|
- name: create volume dir
|
|
become: true
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: pi
|
|
group: pi
|
|
mode: '0755'
|
|
loop: "{{ volumedirs }}"
|
|
|
|
- name: create nextcloud dirs
|
|
file:
|
|
path: ~/{{ item}}
|
|
state: directory
|
|
loop: "{{ ncdirs }}"
|
|
|
|
|
|
|