Skip to content

Commit

Permalink
database already exist fix (#161)
Browse files Browse the repository at this point in the history
* database already exist fix

create database only on first node to avoid to get already existing database issue on salve node
  • Loading branch information
AnthonyTissot authored Apr 13, 2023
1 parent 7a4af6c commit 87bd4ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
- import_tasks: mysql_databases.yml
tags:
- mysql_databases
when: mariadb_databases | count > 0
when:
- mariadb_databases | count > 0
- inventory_hostname == galera_mysql_first_node

- import_tasks: galera_monitoring.yml
tags:
Expand Down

0 comments on commit 87bd4ac

Please sign in to comment.