[ansible-project] Re: changing hostname/ipadress

2016-03-06 Thread Daan Hoogland
FYI, I didn't find a way to do this but worked around by creating a ad-hoc group with add_host. Op dinsdag 1 maart 2016 08:57:01 UTC+1 schreef Daan Hoogland: > > LS, > > When a play I write changes the adres or name by which a host is adressed > (i.e. ansible_host value) is it p

[ansible-project] Re: using cs_instance

2016-03-01 Thread Daan Hoogland
Op zaterdag 27 februari 2016 10:06:00 UTC+1 schreef René Moser: > > > BTW: Did you see the detailed guide for the cloudstack modules? > http://docs.ansible.com/ansible/guide_cloudstack.html > > thanks Rene, I didn't I will go through it ;) > > > René > > > -- You received this message

[ansible-project] changing hostname/ipadress

2016-02-29 Thread Daan Hoogland
LS, When a play I write changes the adres or name by which a host is adressed (i.e. ansible_host value) is it possible to tell ansible to use a new value for this target from there on? I am trying to recreate an instance in a cloud. after the recreation some simple lineinfile, user,

[ansible-project] using cs_instance

2016-02-26 Thread Daan Hoogland
LS, I am trying to use the cloudstack set of modules with ansible 2.0 host file: [vms] vm01 end of host file stip.yaml: - hosts: all gather_facts: no tasks: - name: stop vm local_action: cs_instance name="{{ inventory_hostname }}" state=stopped end of stop.yaml command: $