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
When defining mysql command for icingaweb, if special characters are used
( for example password set to 33t#$pppE@#e ) , role will fail with bad password error
We need to filter the password through the quote filter.
If you have the ability change the following line: -p'{{ _db['password'] }}' to -p'{{ _db['password'] | quote }}'
This should quote the password for shell usage.
I'll run a few tests, if you can test as well give me feedback if this is working for your case ;)
I have not tryed to change manage_mysql_imports.yml because as far as i can see is only called from
icinga/icinga/roles/icingaweb2/tasks/modules/x509.yml which i do not use ( not using x509 ).
I guess the right change for manage_mysql_imports.yml would be
from
-p"{{ _db['password'] }}"
to
-p{{ _db['password'] |quote }}
or just
-p'{{ _db['password'] }}'
Just to clarify things a bit, if i apply variation of your "quote" method on task manage_icingaweb_mysql_db.yml
and set that password line to
When defining mysql command for icingaweb, if special characters are used
( for example password set to 33t#$pppE@#e ) , role will fail with bad password error
Affected code is in
roles/icingaweb2/tasks/manage_mysql_imports.yml
roles/icingaweb2/tasks/manage_icingaweb_mysql_db.yml
If you change:
To:
It will work with complex passwords.
Ansible error for reference
The text was updated successfully, but these errors were encountered: