Merge pull request 'Update 'tasks/mysql-conf.yml'' (!5) from tpiccioli-patch-1 into master

Reviewed-on: #5
This commit is contained in:
Tommaso Piccioli 2021-10-15 13:47:22 +02:00
commit a5dae2eba4
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@
file: dest={{ mysql_data_dir }} state=directory owner=mysql group=mysql mode=0700
- name: Copy data to the new directory
synchronize: src=/var/lib/mysql/ dest={{ mysql_data_dir }} delegate_to={{ inventory_hostname }}
synchronize: src=/var/lib/mysql/ dest={{ mysql_data_dir }}
delegate_to: "{{ inventory_hostname }}"
when: my_data_dir.stat.isdir is not defined
- name: Create the log directory