Commit b1d3cb4c authored by Florian Haas's avatar Florian Haas
Browse files

Drop deprecated use of with_items for apt

Rather than looping over items individually, it is now recommended
to use a list with the "name" parameter for the apt module.

Remove all invocations of apt with with_items, and use a list for
name instead.
parent 8dac2115
......@@ -19,34 +19,33 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- autoconf
- automake
- binutils-doc
- bison
- build-essential
- curl
- flex
- gettext
- git
- libffi-dev
- libfreetype6-dev
- libgdbm-dev
- libjpeg-dev
- libncurses5-dev
- libssl-dev
- libtool
- libxml2-dev
- libxslt-dev
- libzmq3-dev
- python3
- python3-dev
- python3-pip
- "{{ _taiga_python_package_prefix }}-virtualenv"
- tmux
- zlib1g-dev
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- autoconf
- automake
- binutils-doc
- bison
- build-essential
- curl
- flex
- gettext
- git
- libffi-dev
- libfreetype6-dev
- libgdbm-dev
- libjpeg-dev
- libncurses5-dev
- libssl-dev
- libtool
- libxml2-dev
- libxslt-dev
- libzmq3-dev
- python3
- python3-dev
- python3-pip
- "{{ _taiga_python_package_prefix }}-virtualenv"
- tmux
- zlib1g-dev
tags:
- install
- back-install
......
......@@ -2,14 +2,13 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- postgresql
- postgresql-contrib
- postgresql-doc
- postgresql-server-dev-all
- "{{ _taiga_python_package_prefix }}-psycopg2"
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- postgresql
- postgresql-contrib
- postgresql-doc
- postgresql-server-dev-all
- "{{ _taiga_python_package_prefix }}-psycopg2"
tags:
- install
- back-install
......
......@@ -2,10 +2,9 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- libxmlsec1-dev
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- libxmlsec1-dev
tags:
- install
- back-install
......
......@@ -3,11 +3,10 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- ruby
- ruby-dev
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- ruby
- ruby-dev
tags:
- install
- front-install
......
......@@ -3,10 +3,9 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- nginx
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- nginx
tags:
- install
- nginx-install
......
......@@ -2,11 +2,10 @@
become: true
become_user: root
apt:
name: "{{ item }}"
name:
- circus
- "{{ _taiga_python_package_prefix }}-setuptools"
state: "{{ taiga_upgrade | bool | ternary('latest', 'present') }}"
with_items:
- circus
- "{{ _taiga_python_package_prefix }}-setuptools"
tags:
- install
- front-install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment