Is this a bug (ansible 1.4):
- name: add user toto
mysql_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL"
It works, it does the right thing, but when I run it with the "priv=" that status is always "changed". If I remove the priv, the status is "ok".
tannerjc
(James Tanner)
December 10, 2013, 8:31pm
2
It seems like you are describing a behavior that might be resolved by setting "append" to true:
https://github.com/ansible/ansible/pull/4352
I can't be sure that's the problem without knowing what exactly "changed".
That's the thing, I'm not chaning anything, I just re-play the same playbook again and again.
tannerjc
(James Tanner)
December 10, 2013, 10:31pm
4
It seems like it's simple to reproduce, so go ahead and file a bug. I assume one of the conditionals is evaluated improperly and changed is always true.
If you want to debug it yourself, that would also speed things up.