Correcting the tasks for configuring epoptes-client.
This commit is contained in:
parent
9277133ce8
commit
330f991a84
@ -13,6 +13,12 @@
|
|||||||
when: get_epo_srv_name|changed
|
when: get_epo_srv_name|changed
|
||||||
changed_when: "'none' not in epo_srv_name.stdout"
|
changed_when: "'none' not in epo_srv_name.stdout"
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
file:
|
||||||
|
path: /tmp/epoptes-srv
|
||||||
|
state: absent
|
||||||
|
when: get_epo_srv_name|changed
|
||||||
|
|
||||||
- name: Configuring the client
|
- name: Configuring the client
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/default/epoptes-client
|
dest: /etc/default/epoptes-client
|
||||||
@ -24,8 +30,7 @@
|
|||||||
- name: Checking for an already existent certificate
|
- name: Checking for an already existent certificate
|
||||||
file:
|
file:
|
||||||
path: /etc/epoptes/server.crt
|
path: /etc/epoptes/server.crt
|
||||||
status: file
|
state: file
|
||||||
when: epo_srv_name|changed
|
|
||||||
register: crt_epo_exists
|
register: crt_epo_exists
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
@ -35,9 +40,3 @@
|
|||||||
when: crt_epo_exists|failed
|
when: crt_epo_exists|failed
|
||||||
notify:
|
notify:
|
||||||
- reboot
|
- reboot
|
||||||
|
|
||||||
- name: Cleanup
|
|
||||||
file:
|
|
||||||
path: /tmp/epoptes-srv
|
|
||||||
state: absent
|
|
||||||
when: get_epo_srv_name|changed
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user