hostvars are accessible even if the host is not targeted, what is not available are host facts (part of hostvars), in 1.8-1.9 you can use fact caching to get around this issue and still work with --limit. In 2.0 (current devel) you have the option of delegating fact gathering:
setup: delegate_to: hostB which will populate facts for hostB even if running under only hostA. -- Brian Coca -- 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/CAJ5XC8nCZHgW2vqHtL3fGNFmPMjwwipOkfGLjf5_G4_sdN9PLA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
