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