Revisioned again configuration of epoptes-client.
This commit is contained in:
parent
3cb84a6087
commit
d3af386f4a
@ -28,15 +28,18 @@
|
|||||||
when: role == 'client' and epo_srv_name|changed
|
when: role == 'client' and epo_srv_name|changed
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
- name: Prendo il certificato
|
- name: Verifica certificato
|
||||||
shell: "test -f /etc/epoptes/server.crt || /usr/sbin/epoptes-client -c"
|
file:
|
||||||
sudo: yes
|
path: /etc/epoptes/server.crt
|
||||||
|
status: file
|
||||||
when: role == 'client' and epo_srv_name|changed
|
when: role == 'client' and epo_srv_name|changed
|
||||||
register: crt_epo_srv
|
register: crt_epo_exists
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Riavvio il client alla ricezione di un certificato.
|
- name: Prendo il certificato
|
||||||
shell: /bin/true
|
shell: /usr/sbin/epoptes-client -c
|
||||||
when: role == 'client' and crt_epo_srv|changed
|
sudo: yes
|
||||||
|
when: role == 'client' and crt_epo_exists|failed
|
||||||
notify:
|
notify:
|
||||||
- reboot
|
- reboot
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user