Fix: Do not modify permissions recusively

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-09-23 16:04:13 +02:00
parent 5ad840d34e
commit 11702ab8cb
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,11 +1,15 @@
--- ---
- name: Create required directories - name: Create required directories
file:
dest: '{{ item.dest | dirname }}'
recurse: true
- name: Set permissions for directory
file: file:
dest: '{{ item.dest | dirname }}' dest: '{{ item.dest | dirname }}'
owner: '{{ item.owner | default(omit) }}' owner: '{{ item.owner | default(omit) }}'
group: '{{ item.group | default(omit) }}' group: '{{ item.group | default(omit) }}'
recurse: true
- name: Write file - name: Write file
copy: copy: