Force fact-gathering on all hosts

前端 未结 4 1847
夕颜
夕颜 2020-12-15 17:04

I\'m sitting in front of a fairly complex Ansible project that we\'re using to set up our local development environments (multiple VMs) and there\'s one role that uses the f

4条回答
  •  情书的邮戳
    2020-12-15 17:58

    This still seems to be an issue without a clean solution here in 2016, but newer versions of Ansible offer a "jsonfile" fact caching backend, which seems to be a decent compromise to installing Redis locally just to address this need. Now I just fire off an ansible all -m setup before running a playbook with the --limit option. Good enough for jazz!

    http://docs.ansible.com/ansible/playbooks_variables.html#fact-caching

提交回复
热议问题