Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
755 B

---
- name: check if /etc/init.d/alert5 exists
stat:
path: /etc/init.d/alert5
register: initd_alert5
- name: Uncomment minifirewall start line
replace:
dest: /etc/init.d/alert5
regexp: '^#/etc/init.d/minifirewall start'
replace: '/etc/init.d/minifirewall start'
when:
- initd_alert5.stat.exists
- minifirewall_autostart
- name: check if /usr/share/scripts/alert5 exists
stat:
path: /usr/share/scripts/alert5.sh
register: usr_share_scripts_alert5
- name: Uncomment minifirewall start line
replace:
dest: /usr/share/scripts/alert5.sh
regexp: '^#/etc/init.d/minifirewall start'
replace: '/etc/init.d/minifirewall start'
when:
- usr_share_scripts_alert5.stat.exists
- minifirewall_autostart