Add update action for mariadb_user
This commit is contained in:
parent
0b4ddcf7e2
commit
2c3491e42c
15
resources/mariadb_user/actions/update.yaml
Normal file
15
resources/mariadb_user/actions/update.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
- hosts: [{{host}}]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- name: mariadb user
|
||||
mysql_user:
|
||||
name: {{ user_name }}
|
||||
password: {{ user_password }}
|
||||
priv: {{ db_name }}.*:ALL
|
||||
host: '%'
|
||||
state: present
|
||||
update_password: always
|
||||
login_user: root
|
||||
login_password: {{ login_password }}
|
||||
login_port: {{ login_port }}
|
||||
login_host: {{db_host}}
|
Loading…
Reference in New Issue
Block a user