Commit d32bc532 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Remove with_items from apt

parent 3fb7ccd9
......@@ -2,10 +2,11 @@
# file: roles/mysql/tasks/main.yml
- name: ensure mysql packages are installed for jessie
apt: name={{ item }} state=latest
with_items:
- mysql-server
- python-mysqldb
apt:
name:
- mysql-server
- python-mysqldb
state: present
when:
- debian_version == "jessie"
tags:
......@@ -13,10 +14,11 @@
- mysql
- name: ensure mysql packages are installed for stretch
apt: name={{ item }} state=latest
with_items:
- mariadb-server
- python-mysqldb
apt:
name:
- mariadb-server
- python-mysqldb
state: present
when:
- debian_version == "stretch"
tags:
......
......@@ -2,13 +2,12 @@
- name: ensure postgres packages are installed
apt:
name: "{{ item }}"
name:
- postgresql
- python-psycopg2
- python3-psycopg2
- libpq-dev
state: present
with_items:
- postgresql
- python-psycopg2
- python3-psycopg2
- libpq-dev
tags:
- postgres
......
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