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
|
- git
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
|
- build-essential
|
||||||
|
- yarn
|
||||||
update_cache: true
|
update_cache: true
|
||||||
with_items:
|
|
||||||
- git
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- build-essential
|
|
||||||
- yarn
|
|
||||||
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
|
- build-essential
|
||||||
|
- curl
|
||||||
|
- git
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
update_cache: true
|
update_cache: true
|
||||||
with_items:
|
|
||||||
- build-essential
|
|
||||||
- curl
|
|
||||||
- git
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
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
|
- nslcd
|
||||||
|
- libnss-ldapd
|
||||||
|
- libpam-ldapd
|
||||||
update_cache: true
|
update_cache: true
|
||||||
with_items:
|
|
||||||
- nslcd
|
|
||||||
- libnss-ldapd
|
|
||||||
- libpam-ldapd
|
|
||||||
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
|
- git
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
|
- build-essential
|
||||||
update_cache: true
|
update_cache: true
|
||||||
with_items:
|
|
||||||
- git
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- build-essential
|
|
||||||
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
|
- git
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
|
- build-essential
|
||||||
update_cache: true
|
update_cache: true
|
||||||
with_items:
|
|
||||||
- git
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- build-essential
|
|
||||||
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