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 - mariadb
- name: Install mariadb-server - name: Install mariadb-server
ansible.builtin.apt: name={{ item }} state=present cache_valid_time=3600 ansible.builtin.apt:
loop: name: ['mariadb-server', 'python3-pymysql']
- mariadb-server state: present
- python3-pymysql # for ansible cache_valid_time: 3600
tags: mariadb, packages tags: mariadb, packages
- name: Create system my.cnf - name: Create system my.cnf