diff --git a/CHANGELOG.md b/CHANGELOG.md index f428827..3f2781d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.x + +### Fix +* Ensure to keep permissions for configuration files. + ## v1.0 diff --git a/tasks/main.yml b/tasks/main.yml index a6ffccf..41b627a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,10 +22,11 @@ when: item.state == 'directory' notify: ['restart xymon server service'] -- name: Ensure /etc files are populated from templates +- name: Generate Xymon configuration files template: src: '{{ item.src }}' dest: "/etc/xymon/{{ item.path | replace('.j2','') }}" + mode: '{{ item.mode }}' with_filetree: '{{ xymon_server__etc_src }}' when: item.state == 'file' notify: ['restart xymon server service']