mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
Use Ansible lineinfile for ews.cfg in tpot.yml
... instead of sed
This commit is contained in:
parent
4c5447658d
commit
f1edd4fc2e
1 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
- name: Install ews configuration file
|
- name: Copy ews configuration file
|
||||||
template:
|
template:
|
||||||
src: ../templates/ews.cfg
|
src: ../templates/ews.cfg
|
||||||
dest: /data/ews/conf
|
dest: /data/ews/conf
|
||||||
|
@ -6,8 +6,11 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: Patching tpot.yml
|
- name: Patching tpot.yml with custom ews configuration file
|
||||||
raw: sed -i '/\/opt\/ewsposter\/ews.ip/a\\ \ \ \ \ - /data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg' /opt/tpot/etc/tpot.yml
|
lineinfile:
|
||||||
|
path: /opt/tpot/etc/tpot.yml
|
||||||
|
insertafter: '/opt/ewsposter/ews.ip'
|
||||||
|
line: ' - /data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg'
|
||||||
|
|
||||||
- name: Lookup HPFEED environment variables
|
- name: Lookup HPFEED environment variables
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in a new issue