|
@@ -12,9 +12,13 @@
|
|
owner: root
|
|
owner: root
|
|
group: root
|
|
group: root
|
|
mode: '0755'
|
|
mode: '0755'
|
|
|
|
+ when:
|
|
|
|
+ - service_list is defined
|
|
|
|
|
|
- name: Add statusservices to .bash_profile
|
|
- name: Add statusservices to .bash_profile
|
|
lineinfile:
|
|
lineinfile:
|
|
path: /root/.bash_profile
|
|
path: /root/.bash_profile
|
|
line: '/usr/local/bin/statusservices'
|
|
line: '/usr/local/bin/statusservices'
|
|
state: present
|
|
state: present
|
|
|
|
+ when:
|
|
|
|
+ - service_list is defined
|