Use apt module with 2.2 option "allow_unauthenticated"
This commit is contained in:
parent
606c9973c6
commit
82c4c9d745
|
@ -54,17 +54,12 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install packages for DELL/LSI hardware
|
- name: Install packages for DELL/LSI hardware
|
||||||
## With Ansible 2.0, the apt module can't install unauthenticated packages
|
apt:
|
||||||
# apt:
|
name: "{{ item }}"
|
||||||
# name: "{{ item }}"
|
allow_unauthenticated: yes
|
||||||
# state: present
|
with_items:
|
||||||
# with_items:
|
- megacli
|
||||||
# - megacli
|
- megaclisas-status
|
||||||
# - megaclisas-status
|
|
||||||
command: "apt-get install -yq --allow-unauthenticated megacli megaclisas-status"
|
|
||||||
register: install_megacli
|
|
||||||
changed_when: not (install_megacli.stdout | search("0 upgraded") and install_megacli.stdout | search("0 newly installed"))
|
|
||||||
|
|
||||||
|
|
||||||
- name: Configure packages for DELL/LSI hardware
|
- name: Configure packages for DELL/LSI hardware
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -57,9 +57,9 @@
|
||||||
when: evolinux_packages_common
|
when: evolinux_packages_common
|
||||||
|
|
||||||
- name: Install/Update serveur-base meta-package
|
- name: Install/Update serveur-base meta-package
|
||||||
command: "apt-get install -yq --allow-unauthenticated serveur-base"
|
apt:
|
||||||
register: install_server_base
|
name: serveur-base
|
||||||
changed_when: not (install_server_base.stdout | search("0 upgraded") and install_server_base.stdout | search("0 newly installed"))
|
allow_unauthenticated: yes
|
||||||
when: evolinux_packages_serveur_base
|
when: evolinux_packages_serveur_base
|
||||||
|
|
||||||
- name: Customize logcheck recipient
|
- name: Customize logcheck recipient
|
||||||
|
|
Loading…
Reference in a new issue