Do not use depreciated loop with APT

This commit is contained in:
Alexandre Iooss 2019-03-11 18:02:29 +01:00
parent 53b67acb07
commit 84263d7712
6 changed files with 28 additions and 41 deletions

View file

@ -3,11 +3,7 @@
- name: Install basic tools
when: ansible_os_family == "Debian"
apt:
name: "{{ packages }}"
state: present
update_cache: true
vars:
packages:
name:
- bash-completion # for bash users
- zsh # alternative shell
- sudo # to gain root access
@ -19,6 +15,7 @@
- tree # create a graphical tree of files
- ipython # better Python shell
- acl # for Ansible become support
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -17,15 +17,13 @@
# Install CodiMD dependencies
- name: Install required packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
name:
- git
- nodejs
- npm
- build-essential
- yarn
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -12,15 +12,13 @@
# Install EtherPad dependencies
- name: Install required packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
name:
- build-essential
- curl
- git
- nodejs
- npm
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -2,13 +2,11 @@
# Install LDAP client packages
- name: Install LDAP client packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
name:
- nslcd
- libnss-ldapd
- libpam-ldapd
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -10,14 +10,12 @@
- name: Install required packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
name:
- git
- nodejs
- npm
- build-essential
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -10,14 +10,12 @@
- name: Install required packages
apt:
name: "{{ item }}"
state: present
update_cache: true
with_items:
name:
- git
- nodejs
- npm
- build-essential
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded