From 980ff7ab2309fec4f0fa42038feee3aa2da989a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Thu, 1 Oct 2015 17:56:53 +0200 Subject: [PATCH] Add update action for mariadb_user --- resources/mariadb_user/actions/update.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 resources/mariadb_user/actions/update.yaml diff --git a/resources/mariadb_user/actions/update.yaml b/resources/mariadb_user/actions/update.yaml new file mode 100644 index 00000000..3c0831f8 --- /dev/null +++ b/resources/mariadb_user/actions/update.yaml @@ -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}}