Tweak hpfeeds setup

- Fix owner and file permissions for proper comparison
- Only execute the hpfeeds script when the config file has changed
This commit is contained in:
Sebastian Haderecker 2019-10-28 11:49:57 +00:00
parent 9c7c6ac4a3
commit 170439d977

View file

@ -2,9 +2,11 @@
copy: copy:
src: ../files/hpfeeds.cfg src: ../files/hpfeeds.cfg
dest: /data/ews/conf dest: /data/ews/conf
owner: root owner: tpot
group: root group: tpot
mode: 0644 mode: 0770
register: config
- name: Applying hpfeeds settings - name: Applying hpfeeds settings
command: /opt/tpot/bin/hpfeeds_optin.sh --conf=/data/ews/conf/hpfeeds.cfg command: /opt/tpot/bin/hpfeeds_optin.sh --conf=/data/ews/conf/hpfeeds.cfg
when: config.changed == true