mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
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:
parent
9c7c6ac4a3
commit
170439d977
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue