sidn-lxd-ansible-demo/roles/app.mariadb/tasks/debian-sys-maint.yml

17 lines
458 B
YAML

---
- name: "Configure the password for the debian-sys-maint user"
mysql_user:
name: "debian-sys-maint"
host: "localhost"
password: "{{ credentials.mysql_root.password }}"
tags:
- debian-sys-maint
- name: "Store the debian-sys-maint password in /etc/mysql/debian.cnf"
replace:
path: /etc/mysql/debian.cnf
regexp: '^password\s*=.*$'
replace: "password = {{ credentials.mysql_root.password }}"
tags:
- debian-sys-maint