roles/mariadb: install packages in single transaction

Using a list we can install these in a single apt transaction. Also
use the newer task format.
This commit is contained in:
Alan Orth 2022-09-12 10:12:07 +03:00
parent c317429f6d
commit 5bc03ceacc
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -49,10 +49,10 @@
- mariadb
- name: Install mariadb-server
ansible.builtin.apt: name={{ item }} state=present cache_valid_time=3600
loop:
- mariadb-server
- python3-pymysql # for ansible
ansible.builtin.apt:
name: ['mariadb-server', 'python3-pymysql']
state: present
cache_valid_time: 3600
tags: mariadb, packages
- name: Create system my.cnf