Closed chriscowley closed 4 years ago
I don't really have a solution for this. This problem also occurs with the package installation. One task installs the MariaDB repository, another task installs the packages. The latter task will fail in --check mode since the package to be installed is not in the repositories. Later tasks like mysql_user would probably also fail in --check mode since no database will be installed at that time.
When running
ansible-playbook --check
fails when this role is activated.The task
Check if root password is set
is not settingroot_pwd_check
, so the condition to stop it pretending to set the root password is in the wrong format, so the test fails, even though it will run fine when the playbook is run for true. Obviously this makes it impossible to do a proper dry-run of the playbook