On 04. jan. 2017 13:25, Cosimo Streppone wrote:
That's right. I had "gathering=explicit" in my configuration file,
since I had used ansible only for command execution, and obviously
gathering facts was wasting lots of time for those kind of tasks.
Thanks, that clears it.
I tried overriding my configuration file from the command line:
ansible-playbook -v -l <hostname> -e gather_facts=true ./playbook.yml
and:
ansible-playbook -v -l <hostname> -e gathering=implicit ./playbook.yml
but none worked.
Changing the playbook file by adding "gather_facts: true" worked
instead.
Not sure if that's an accepted practice. Opinions?
gather_facts and gathering is a directive not a variables, so thats why
-e didn't work.
gather_facts can only be used in a play.
--
Kai Stian Olstad
--
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/7e75dda0-0310-cdb1-f7dc-a365de1a45a7%40olstad.com.
For more options, visit https://groups.google.com/d/optout.