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

Remove with_items from apt

parent 3fb7ccd9
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
# file: roles/mysql/tasks/main.yml # file: roles/mysql/tasks/main.yml
- name: ensure mysql packages are installed for jessie - name: ensure mysql packages are installed for jessie
apt: name={{ item }} state=latest apt:
with_items: name:
- mysql-server - mysql-server
- python-mysqldb - python-mysqldb
state: present
when: when:
- debian_version == "jessie" - debian_version == "jessie"
tags: tags:
...@@ -13,10 +14,11 @@ ...@@ -13,10 +14,11 @@
- mysql - mysql
- name: ensure mysql packages are installed for stretch - name: ensure mysql packages are installed for stretch
apt: name={{ item }} state=latest apt:
with_items: name:
- mariadb-server - mariadb-server
- python-mysqldb - python-mysqldb
state: present
when: when:
- debian_version == "stretch" - debian_version == "stretch"
tags: tags:
......
...@@ -2,13 +2,12 @@ ...@@ -2,13 +2,12 @@
- name: ensure postgres packages are installed - name: ensure postgres packages are installed
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- postgresql - postgresql
- python-psycopg2 - python-psycopg2
- python3-psycopg2 - python3-psycopg2
- libpq-dev - libpq-dev
state: present
tags: tags:
- postgres - postgres
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment