evomaintenance: use allow_unauthenticated option

This commit is contained in:
Jérémy Lecour 2017-05-09 23:57:24 +02:00
parent 92f12682d1
commit 6c2cbe197f

View file

@ -1,9 +1,8 @@
--- ---
- name: evomaintenance is installed - name: evomaintenance is installed
command: "apt-get install -yq --allow-unauthenticated evomaintenance" apt:
register: installed_evomaintenance name: evomaintenance
changed_when: not (installed_evomaintenance.stdout | search("0 upgraded") and installed_evomaintenance.stdout | search("0 newly installed")) allow_unauthenticated: yes
- name: configuration is applied - name: configuration is applied
template: template:
@ -14,7 +13,6 @@
shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6" shell: "cat /etc/passwd | grep -vE \"^root:\" | grep -E \":/[^:]+sh$\" | cut -d: -f6"
changed_when: False changed_when: False
check_mode: no check_mode: no
register: home_of_shell_users register: home_of_shell_users
- include: trap.yml home={{ item }} - include: trap.yml home={{ item }}