enable the gather facts to evaluate the condition

parent d631faf4
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- name: Create a single user - name: Create a single user
hosts: all hosts: all
become: True become: True
gather_facts: False gather_facts: True
pre_tasks: pre_tasks:
- fail: msg="You must pass a user into this play" - fail: msg="You must pass a user into this play"
when: user is not defined when: user is not defined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment