Firstly just to say I'm new to ansible and learning as I go along.

I have configure a playbook that clones 3 virtual machines using the 
following inventory file which has a few custom variables added for my needs

ansible-playbook -i vms-to-deploy deploy_sap_vm.yml

vms-to-deploy
[netweaver]
prcsapnwd01 deploy_vsphere_datastore='datastore2' 
guest_custom_ip='10.0.14.20' sap_sid='NWD' 
virtual_alias_ip='10.0.14.21,10.0.14.22,10.0.14.23'
prcsapnwq01 deploy_vsphere_datastore='datastore2' 
guest_custom_ip='10.0.14.30' sap_sid='NWQ' 
virtual_alias_ip='10.0.14.31,10.0.14.32,10.0.14.33'
prcsapnwp01 deploy_vsphere_datastore='datastore2' 
guest_custom_ip='10.0.14.40' sap_sid='NWP' 
virtual_alias_ip='10.0.14.41,10.0.14.32,10.0.14.43'

I have successfully managed to clone the vm's using vmware_guest role which 
then customizes the virtual machines and assigns the guest_custom_ip to be 
the ip of the physical interface eth0

The next task I want to perform is to add additional ip addresses to that 
adapter eth0 so for example in the case of host prcsapnwd01 eth0 has

eth0:
10.0.14.20 (Phsyical Host)
10.0.14.21 (Virtual Alias IP)
10.0.14.22 (Virtual Alias IP)
10.0.14.23 (Virtual Alias IP)

The linux-system-roles.network looks like it can do the job for me.

I am just not sure how i go about reading the additional ip addresses from 
my inventory file and passing them to the task variables.

Any help would be appreciated. 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b73d8815-791b-43d2-9a6a-bcefc313a80eo%40googlegroups.com.

Reply via email to