On Sun, 18 Jan 2015, Peter Mooshammer wrote:
On Sunday, January 18, 2015 at 4:57:39 PM UTC-8, James Martin wrote:
Have you looked into using the GCE dynamic inventory?
http://docs.ansible.com/guide_gce.html#gce-dynamic-inventory
I wanted to write a play that sets up and provisions a node in one sweep,
so I thought add_host is necessary (In the example I showed the lineinfile,
which isn't really necessary.
But this is also a more general question, How can I update host information.
Simply run the "setup" module again, eg:
- name: Update host facts
action: setup
This will only work if the changes have been activated.
--
Dag