enable the gather facts to evaluate the condition

parent d631faf4
......@@ -6,7 +6,7 @@
- name: Create a single user
hosts: all
become: True
gather_facts: False
gather_facts: True
pre_tasks:
- fail: msg="You must pass a user into this play"
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