Skip to content
Snippets Groups Projects
Commit 438bf4fd authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Remove with_items from apt

parent 609c003b
Branches
No related tags found
No related merge requests found
...@@ -25,10 +25,8 @@ ...@@ -25,10 +25,8 @@
- name: ensure we have the packaging software installed - name: ensure we have the packaging software installed
apt: apt:
name: "{{ item }}" name: reprepro
state: present state: present
with_items:
- reprepro
tags: tags:
- packages - packages
- debian-repository - debian-repository
......
...@@ -2,15 +2,14 @@ ...@@ -2,15 +2,14 @@
- name: ensure php packages are installed - name: ensure php packages are installed
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- php - php
- php-mbstring - php-mbstring
- php-gd - php-gd
- php-zip - php-zip
- php-mcrypt - php-mcrypt
- php-xml - php-xml
state: present
- name: ensure groups for dokuwiki exist - name: ensure groups for dokuwiki exist
group: group:
......
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
- name: ensure php-fpm is installed on stretch - name: ensure php-fpm is installed on stretch
apt: apt:
name: "{{ item }}" name: php-fpm
state: present state: present
with_items:
- php-fpm
when: debian_version == "stretch" when: debian_version == "stretch"
notify: notify:
- restart php-fpm - restart php-fpm
...@@ -16,11 +14,10 @@ ...@@ -16,11 +14,10 @@
- name: ensure php-fpm is installed on jessie - name: ensure php-fpm is installed on jessie
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- php5 - php5
- php5-fpm - php5-fpm
state: present
when: debian_version == "jessie" when: debian_version == "jessie"
tags: tags:
- php-fpm - php-fpm
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# file: sentry/tasks/main.yml # file: sentry/tasks/main.yml
- name: ensure we have the necessary software - name: ensure we have the necessary software
apt: name="{{item}}" state=present apt:
with_items: name:
- python-virtualenv - python-virtualenv
- libpq-dev - libpq-dev
- python-dev - python-dev
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
- libldap2-dev - libldap2-dev
- libssl-dev - libssl-dev
- python-ldap - python-ldap
state: present
tags: tags:
- sentry - sentry
- webservices - webservices
......
...@@ -15,14 +15,15 @@ ...@@ -15,14 +15,15 @@
- meta: flush_handlers - meta: flush_handlers
- name: install the required packages for shibboleth - name: install the required packages for shibboleth
apt: name="{{item}}" state=present apt:
with_items: name:
- nginx-extras - nginx-extras
- libnginx-mod-http-shibboleth - libnginx-mod-http-shibboleth
- libnginx-mod-http-headers-more-filter - libnginx-mod-http-headers-more-filter
- supervisor - supervisor
- shibboleth-sp2-utils - shibboleth-sp2-utils
- shibboleth-sp2-common - shibboleth-sp2-common
state: present
notify: notify:
- reload shibd - reload shibd
tags: tags:
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
- name: ensure we have python 2 - name: ensure we have python 2
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- python - python
- python-dev - python-dev
- python-virtualenv - python-virtualenv
- uwsgi-plugin-python - uwsgi-plugin-python
- virtualenv - virtualenv
state: present
when: app_python_version == 2 when: app_python_version == 2
tags: tags:
- uwsgi-app - uwsgi-app
...@@ -34,14 +33,13 @@ ...@@ -34,14 +33,13 @@
- name: ensure we have python 3 - name: ensure we have python 3
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- python3 - python3
- python3-dev - python3-dev
- python3-virtualenv - python3-virtualenv
- uwsgi-plugin-python3 - uwsgi-plugin-python3
- virtualenv - virtualenv
state: present
when: app_python_version == 3 when: app_python_version == 3
tags: tags:
- uwsgi-app - uwsgi-app
...@@ -110,8 +108,9 @@ ...@@ -110,8 +108,9 @@
- "{{ app.instance }}" - "{{ app.instance }}"
- name: ensure additional software is installed - name: ensure additional software is installed
apt: name="{{ item }}" state=present apt:
with_items: "{{ app_additional_software }}" name: "{{app_additional_software}}"
state: present
when: when:
- app_additional_software is defined - app_additional_software is defined
tags: tags:
......
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
- name: ensure we have python mysql packages - name: ensure we have python mysql packages
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- python-mysqldb - python-mysqldb
- python3-mysqldb - python3-mysqldb
- default-libmysqlclient-dev - default-libmysqlclient-dev
state: present
tags: tags:
- uwsgi-python - uwsgi-python
- webservices - webservices
......
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
- name: ensure nginx is installed - name: ensure nginx is installed
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- nginx - nginx
- nginx-full - nginx-full
state: present
notify: notify:
- restart nginx - restart nginx
- restart nginx-proxy - restart nginx-proxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment