Adding tasks for epoptes-client.
This commit is contained in:
parent
3378e2c912
commit
d2c96c764a
@ -20,14 +20,19 @@
|
|||||||
when: role == 'client' and get_epo_srv_name|changed
|
when: role == 'client' and get_epo_srv_name|changed
|
||||||
changed_when: 'none' not in epo_srv_name.stdout
|
changed_when: 'none' not in epo_srv_name.stdout
|
||||||
|
|
||||||
- name: "Configuro il client per Epoptes"
|
- name: Configuro il client per Epoptes
|
||||||
replace:
|
replace:
|
||||||
regexp: "^#SERVER=server"
|
regexp: "^#SERVER=server"
|
||||||
replace: "SERVER={{ epo_srv_name.stdout }}"
|
replace: "SERVER={{ epo_srv_name.stdout }}"
|
||||||
when: role == 'client' and epo_srv_name|changed
|
when: role == 'client' and epo_srv_name|changed
|
||||||
|
sudo: yes
|
||||||
|
|
||||||
|
- name: Prendo il certificato
|
||||||
|
shell: /usr/sbin/epoptes-client -c
|
||||||
|
sudo: yes
|
||||||
|
when: role == 'client' and epo_srv_name|changed
|
||||||
notify:
|
notify:
|
||||||
- reboot
|
- reboot
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: Pulisco
|
- name: Pulisco
|
||||||
file:
|
file:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user