You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In tasks/installation.yml, this role removes the following files and/or directories on Ubuntu 20.04:
/etc/mysql/mariadb.conf.d/
/etc/mysql/my.cnf
/etc/conf.d/mysql.conf
(potentially other files on other distributions, I haven't checked very thoroughly)
The issue is that some of these files are owned by distribution packages:
# dpkg -S /etc/mysql/{mariadb.conf.d,my.cnf,conf.d/mysql.cnf}
mariadb-server-10.3, mariadb-common, mariadb-client-10.3: /etc/mysql/mariadb.conf.d
dpkg-query: no path found matching pattern /etc/mysql/my.cnf
mysql-common: /etc/mysql/conf.d/mysql.cnf
Any update for these packages would thus cause these files to reappear, and potentially break existing configuration (or at least I assume that there is some reason why these files are removed in the first place).
STEPS TO REPRODUCE
Apply this role;
Reinstall/upgrade one of the affected packages (e.g. directly or as part of an apt upgrade);
Reapply this role (potentially in check mode), and see that it would have to remove these files again.
EXPECTED RESULTS
An Ansible role should not simply delete package-provided files, or at least it should put mechanisms in place to ensure that they will not randomly reappear.
ACTUAL RESULTS
The configuration files reappear and thus require an Ansible run after a reinstallation/upgrade to avoid potential breakage.
Suggested solution: Evaluate why the files must be removed in the first place, and find a solution that fixes the actual problem (potentially it simply requires commenting out a problematic line in the default configuration).
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
(no output)
OS / ENVIRONMENT
SUMMARY
In
tasks/installation.yml
, this role removes the following files and/or directories on Ubuntu 20.04:/etc/mysql/mariadb.conf.d/
/etc/mysql/my.cnf
/etc/conf.d/mysql.conf
(potentially other files on other distributions, I haven't checked very thoroughly)
The issue is that some of these files are owned by distribution packages:
Any update for these packages would thus cause these files to reappear, and potentially break existing configuration (or at least I assume that there is some reason why these files are removed in the first place).
STEPS TO REPRODUCE
apt upgrade
);EXPECTED RESULTS
An Ansible role should not simply delete package-provided files, or at least it should put mechanisms in place to ensure that they will not randomly reappear.
ACTUAL RESULTS
The configuration files reappear and thus require an Ansible run after a reinstallation/upgrade to avoid potential breakage.
Suggested solution: Evaluate why the files must be removed in the first place, and find a solution that fixes the actual problem (potentially it simply requires commenting out a problematic line in the default configuration).
The text was updated successfully, but these errors were encountered: