[ansible-project] Re: Cannot get customized facts when pushing with "--check"

2014-12-25 Thread Dong Guo
ansible_private_ipv4_address = get_ansible_private_ipv4_address() ansible_facts_dict['ansible_facts']['ansible_private_ipv4_address'] = ansible_private_ipv4_address print json.dumps(ansible_facts_dict) from ansible.module_utils.basic import * from ansible.mo

[ansible-project] Cannot get customized facts when pushing with "--check"

2014-12-19 Thread Dong Guo
Hi gentlemen, We are using the Ansible to manage many servers, and we like the dry run mode which with parameters "--check" and "--diff". We always run with these parameters first to verify that if the changes will be made correctly. The customized facts are very helpful, to generate some dynamic