tpotce/cloud/ansible/openstack/roles/custom_hpfeeds/tasks/main.yaml
Sebastian Haderecker 170439d977 Tweak hpfeeds setup
- Fix owner and file permissions for proper comparison
- Only execute the hpfeeds script when the config file has changed
2019-10-28 11:49:57 +00:00

12 lines
311 B
YAML

- name: Copy hpfeeds configuration file
copy:
src: ../files/hpfeeds.cfg
dest: /data/ews/conf
owner: tpot
group: tpot
mode: 0770
register: config
- name: Applying hpfeeds settings
command: /opt/tpot/bin/hpfeeds_optin.sh --conf=/data/ews/conf/hpfeeds.cfg
when: config.changed == true