diff --git a/tasks/main.yaml b/tasks/main.yaml index 0b7ebcb..1ceafa0 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -77,12 +77,16 @@ - name: Ensure target directory exists file: path: "{{ manifest_base }}" + owner: root + group: root + mode: 0755 state: directory - name: copy puppet modules synchronize: src: "{{ mgmt_manifestpath }}" dest: "{{ manifest_base }}" + delete: yes no_log: "{{ puppet_nolog_sync | bool }}" - name: ensure hieradata manifest link is present @@ -117,6 +121,7 @@ synchronize: src: "{{ mgmt_puppet_module_dir }}" dest: "{{ puppet_module_dir }}" + delete: yes no_log: "{{ puppet_nolog_sync | bool }}" when: