Hey guys,
i’ve got a question.
So we are currently using Ansible in conjunction with OpenStack.
i’ve written a playbook (to deploy new server via OpenStack) where i use the module “os_server” where i use “auto_ip: yes” , so the new server will become an IP Adress assigned from the OpenStack Server.
if i use the “-vvvv” output command, i get a loooong output where in the middle of that output an IP-Adress is listed.
So, cause i am am a lazy guy i want to put just this IP Adress in a variable and let me show this IP Adress in an extra field.
It should look like this:
“…output stuf…
…
…
…
…”
“The IP Adress of the New server is …”
is there any possibility you know to put these IP Adress Field in a variable or to filter that output to the IP Adress?
I hope you guys can help me !
kind regards,
kgierman