mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-09-20 11:12:52 +00:00
Fix issue with not adding new MariaDB users and databases in Deployer
This commit is contained in:
@@ -121,7 +121,6 @@
|
|||||||
restart_policy: always
|
restart_policy: always
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: "{{ config.mariadb.users.root.password }}"
|
MYSQL_ROOT_PASSWORD: "{{ config.mariadb.users.root.password }}"
|
||||||
register: deployerTaskM2
|
|
||||||
when:
|
when:
|
||||||
- (deployerTaskM1 is defined and deployerTaskM1.changed) or deployerTaskM1 is undefined
|
- (deployerTaskM1 is defined and deployerTaskM1.changed) or deployerTaskM1 is undefined
|
||||||
tags:
|
tags:
|
||||||
@@ -133,8 +132,6 @@
|
|||||||
host: "127.0.0.1"
|
host: "127.0.0.1"
|
||||||
port: "3306"
|
port: "3306"
|
||||||
delay: 10
|
delay: 10
|
||||||
when:
|
|
||||||
- (deployerTaskM2 is defined and deployerTaskM2.changed) or deployerTaskM2 is undefined
|
|
||||||
tags:
|
tags:
|
||||||
- mariadb
|
- mariadb
|
||||||
- database
|
- database
|
||||||
@@ -146,8 +143,6 @@
|
|||||||
register: task
|
register: task
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1
|
changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1
|
||||||
when:
|
|
||||||
- (deployerTaskM2 is defined and deployerTaskM2.changed) or deployerTaskM2 is undefined
|
|
||||||
tags:
|
tags:
|
||||||
- mariadb
|
- mariadb
|
||||||
- database
|
- database
|
||||||
@@ -166,7 +161,6 @@
|
|||||||
label: "{{ user }}"
|
label: "{{ user }}"
|
||||||
loop_var: "user"
|
loop_var: "user"
|
||||||
when:
|
when:
|
||||||
- (deployerTaskM2 is defined and deployerTaskM2.changed) or deployerTaskM2 is undefined
|
|
||||||
- config.mariadb.users is defined
|
- config.mariadb.users is defined
|
||||||
- config.mariadb.users[user] is defined
|
- config.mariadb.users[user] is defined
|
||||||
- config.mariadb.users[user].username is defined
|
- config.mariadb.users[user].username is defined
|
||||||
@@ -187,7 +181,6 @@
|
|||||||
label: "{{ user }}"
|
label: "{{ user }}"
|
||||||
loop_var: "user"
|
loop_var: "user"
|
||||||
when:
|
when:
|
||||||
- (deployerTaskM2 is defined and deployerTaskM2.changed) or deployerTaskM2 is undefined
|
|
||||||
- config.mariadb.users is defined
|
- config.mariadb.users is defined
|
||||||
- config.mariadb.users[user] is defined
|
- config.mariadb.users[user] is defined
|
||||||
- config.mariadb.users[user].username is defined
|
- config.mariadb.users[user].username is defined
|
||||||
|
Reference in New Issue
Block a user