Hi,
My problem is described here (MWE):
Some modules allow you to pass yaml's null as a param which ends up as a python's None. For instance the mysql_user module here:
won't change the password when null is passed:
- name: setup.mysql
mysql_user:
password: null
will only change privileges but not passwords (which the user may change). However if I pass a variable
- name: setup mysql
mysql_user:
password: "{{ pw }}"
I can't get it to work properly (as shown in the pastebin). This is with the latest devel.
Is there a way to get that behavior? Right now I have to create two lists (one which enforces passwords, one which does not).
Cheers