Setting permissions on repository directory correct

This commit is contained in:
Dieter Verhelst 2018-09-03 21:07:45 +02:00
parent 4475c07bc2
commit e396c028ec

View File

@ -9,6 +9,15 @@
with_items: "{{ borgbackup_servers }}" with_items: "{{ borgbackup_servers }}"
when: item.type == 'normal' when: item.type == 'normal'
- name: server | set permissions
file:
dest: "{{ item.home }}"
owner: "{{ item.user }}"
group: "{{ item.user }}"
delegate_to: "{{ item.fqdn }}"
with_items: "{{ borgbackup_servers }}"
when: item.type == 'normal'
- name: server | create directories - name: server | create directories
file: file:
path: "{{ item.home}}{{ item.pool }}" path: "{{ item.home}}{{ item.pool }}"