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:
parent
c317429f6d
commit
5bc03ceacc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user