diff --git a/resources/mariadb_user/actions/remove.yml b/resources/mariadb_user/actions/remove.yml index 7f6939d..bb6df44 100644 --- a/resources/mariadb_user/actions/remove.yml +++ b/resources/mariadb_user/actions/remove.yml @@ -3,7 +3,7 @@ tasks: - name: mariadb user mysql_user: - name: {{new_user_name}} + name: {{user_name}} state: absent login_user: root login_password: {{login_password}} diff --git a/resources/mariadb_user/actions/run.yml b/resources/mariadb_user/actions/run.yml index d600c13..8ddf831 100644 --- a/resources/mariadb_user/actions/run.yml +++ b/resources/mariadb_user/actions/run.yml @@ -3,8 +3,8 @@ tasks: - name: mariadb user mysql_user: - name: {{ new_user_name }} - password: {{ new_user_password }} + name: {{ user_name }} + password: {{ user_password }} priv: {{ db_name }}.*:ALL host: '%' state: present diff --git a/resources/mariadb_user/meta.yaml b/resources/mariadb_user/meta.yaml index b46d6e2..fe17909 100644 --- a/resources/mariadb_user/meta.yaml +++ b/resources/mariadb_user/meta.yaml @@ -5,10 +5,10 @@ actions: run: run.yml remove: remove.yml input: - new_user_password: + user_password: schema: str! value: - new_user_name: + user_name: schema: str! value: db_name: