Thanks Kai. For some reason, when I run my playbook though, the Ansible
doesn't like how the when: conditional is structured
when: new_user != "root"
*fatal: [192.168.1.5]: FAILED! => {"changed": false, "failed": true,
"invocation": {"module_args": {"name": "dave3", "when": "new_user !=
\"root\""}, "module_name": "user"}, "msg": "unsupported parameter for
module: when"}*
I don't see too many examples where a variable is invoked by when: so, I'm
not sure if the syntax somehow is wrong. I tried specifying it as a list as
well, but that had no effect:
*fatal: [192.168.76.103]: FAILED! => {"changed": false, "failed": true,
"invocation": {"module_args": {"name": "dave3", "when": ["new_user !=
\"root\""]}, "module_name": "user"}, "msg": "unsupported parameter for
module: when"}*
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1d612570-7b44-49c2-8e88-16d14c3da6b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.