2017-05-02 10:56:12 +02:00
|
|
|
---
|
2020-02-10 10:36:00 +01:00
|
|
|
|
|
|
|
- name: check if /etc/init.d/alert5 exists
|
|
|
|
stat:
|
|
|
|
path: /etc/init.d/alert5
|
|
|
|
register: initd_alert5
|
|
|
|
|
2017-05-02 10:56:12 +02:00
|
|
|
- name: Uncomment minifirewall start line
|
|
|
|
replace:
|
|
|
|
dest: /etc/init.d/alert5
|
|
|
|
regexp: '^#/etc/init.d/minifirewall start'
|
|
|
|
replace: '/etc/init.d/minifirewall start'
|
2020-02-10 10:36:00 +01:00
|
|
|
when:
|
|
|
|
- initd_alert5.stat.exists
|
|
|
|
- minifirewall_autostart
|
|
|
|
|
|
|
|
- name: check if /usr/share/scripts/alert5 exists
|
|
|
|
stat:
|
|
|
|
path: /usr/share/scripts/alert5
|
|
|
|
register: usr_share_scripts_alert5
|
|
|
|
|
|
|
|
- name: Uncomment minifirewall start line
|
|
|
|
replace:
|
|
|
|
dest: /usr/share/scripts/alert5
|
|
|
|
regexp: '^#/etc/init.d/minifirewall start'
|
|
|
|
replace: '/etc/init.d/minifirewall start'
|
|
|
|
when:
|
|
|
|
- usr_share_scripts_alert5.stat.exists
|
|
|
|
- minifirewall_autostart
|