changing hostname/ipadress

27 views
Skip to first unread message

Daan Hoogland

unread,
Mar 1, 2016, 2:57:01 AM3/1/16
to Ansible Project
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, authorized_key and package tasks need to be performed.

regards,
Daan

Daan Hoogland

unread,
Mar 6, 2016, 5:58:33 AM3/6/16
to Ansible Project
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:
Reply all
Reply to author
Forward
0 new messages