Fix right problem in mysql replication

The configuration file was not set to 0644, which caused the file
to be ignored by mysql and it's configuration not to be set.
This commit is contained in:
Patrick Marchand 2020-01-13 17:50:24 +01:00 committed by Gitea
parent c142af69f0
commit e713ad024b

View file

@ -4,11 +4,7 @@
template: template:
src: 'replication.cnf.j2' src: 'replication.cnf.j2'
dest: "{{ mysql_config_directory }}/zzzz-replication.cnf" dest: "{{ mysql_config_directory }}/zzzz-replication.cnf"
with_first_found: mode: "0644"
- "templates/mysql/replication.{{ inventory_hostname }}.cnf.j2"
- "templates/mysql/replication.{{ host_group }}.cnf.j2"
- 'templates/mysql/replication.cnf.j2'
- 'replication.cnf.j2'
notify: 'restart mysql' notify: 'restart mysql'
- name: 'Create repl user' - name: 'Create repl user'