Do not use depreciated loop with APT
This commit is contained in:
parent
53b67acb07
commit
84263d7712
6 changed files with 28 additions and 41 deletions
|
@ -3,11 +3,7 @@
|
||||||
- name: Install basic tools
|
- name: Install basic tools
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
vars:
|
|
||||||
packages:
|
|
||||||
- bash-completion # for bash users
|
- bash-completion # for bash users
|
||||||
- zsh # alternative shell
|
- zsh # alternative shell
|
||||||
- sudo # to gain root access
|
- sudo # to gain root access
|
||||||
|
@ -19,6 +15,7 @@
|
||||||
- tree # create a graphical tree of files
|
- tree # create a graphical tree of files
|
||||||
- ipython # better Python shell
|
- ipython # better Python shell
|
||||||
- acl # for Ansible become support
|
- acl # for Ansible become support
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -17,15 +17,13 @@
|
||||||
# Install CodiMD dependencies
|
# Install CodiMD dependencies
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
with_items:
|
|
||||||
- git
|
- git
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
- build-essential
|
- build-essential
|
||||||
- yarn
|
- yarn
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -12,15 +12,13 @@
|
||||||
# Install EtherPad dependencies
|
# Install EtherPad dependencies
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
with_items:
|
|
||||||
- build-essential
|
- build-essential
|
||||||
- curl
|
- curl
|
||||||
- git
|
- git
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -2,13 +2,11 @@
|
||||||
# Install LDAP client packages
|
# Install LDAP client packages
|
||||||
- name: Install LDAP client packages
|
- name: Install LDAP client packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
with_items:
|
|
||||||
- nslcd
|
- nslcd
|
||||||
- libnss-ldapd
|
- libnss-ldapd
|
||||||
- libpam-ldapd
|
- libpam-ldapd
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -10,14 +10,12 @@
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
with_items:
|
|
||||||
- git
|
- git
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
- build-essential
|
- build-essential
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -10,14 +10,12 @@
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
with_items:
|
|
||||||
- git
|
- git
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
- build-essential
|
- build-essential
|
||||||
|
update_cache: true
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
|
Loading…
Reference in a new issue