|
|
|
@ -291,6 +291,20 @@ outputs:
|
|
|
|
|
- {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t', 'mode': '0750'} |
|
|
|
|
- {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'} |
|
|
|
|
upgrade_tasks: |
|
|
|
|
- name: Ensure correct label on mysql data directory and content |
|
|
|
|
when: |
|
|
|
|
- step|int == 0 |
|
|
|
|
file: |
|
|
|
|
path: /var/lib/mysql |
|
|
|
|
setype: svirt_sandbox_file_t |
|
|
|
|
recurse: true |
|
|
|
|
- name: Ensure correct label on mysql log directory and content |
|
|
|
|
when: |
|
|
|
|
- step|int == 0 |
|
|
|
|
file: |
|
|
|
|
path: /var/log/containers/mysql |
|
|
|
|
setype: svirt_sandbox_file_t |
|
|
|
|
recurse: true |
|
|
|
|
# When mariadb is upgraded to a new major release, one must run |
|
|
|
|
# mysql_upgrade to upgrade the DB's system tables, and potentially |
|
|
|
|
# run other storage upgrade. We want to that as early as possible |
|
|
|
|