Hello,
Have an odd problem with host_vars, work different on two systems.
Using 2.1.2.0, Centos 6 on both.
On problem system, a run with only one host from inventory is failing to
pickup host_vars for other hosts, while groups_vars are correct.
If, on same system, run with all hosts shows the expected value, confirmed
via '-debug: vars=hostvars'.
On another system, same setup, same user, same repo of playbook, same
commit, run with single host shows the correct host_vars for all hosts.
I've broken down to simple playbook file:
---
- hosts: host1
tasks:
-debug: var=hostvars
Same result.
This does use cache with this config file in playbook (so, global is not
changed):
[defaults]
remote_user=root
ansible_managed=Managed by ansible, hand edits will be overwritten.
forks=10
timeout=30
#deprecation_warnings=False
#gathering=smart
fact_caching=jsonfile
fact_caching_timeout=3600
fact_caching_connection=.cache/
scp_if_ssh=true
[ssh_connection]
pipelining=true
ssh_args= -o GSSAPIAuthentication=no -o ServerAliveInterval=180
I tried both --flush-cache and nuking .cache, no change.
What am I missing?
Bill
--
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/0278a6cb-3b1b-4cb0-a686-869c51caba1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.