Deprecated in 2.0. Use os_floating_ip instead
Add or Remove a floating IP to an instance
parameter | required | default | choices | comments |
---|---|---|---|---|
auth_url | no | http://127.0.0.1:35357/v2.0/ | The keystone url for authentication |
|
instance_name | yes | None | The name of the instance to which the IP address should be assigned |
|
internal_network_name (added in 1.5)
| no | None | The name of the network of the port to associate with the floating ip. Necessary when VM multiple networks. |
|
login_password | yes | yes | Password of login user |
|
login_tenant_name | yes | yes | The tenant name of the login user |
|
login_username | yes | admin | login username to authenticate to keystone |
|
network_name | yes | None | Name of the network from which IP has to be assigned to VM. Please make sure the network is an external network |
|
region_name | no | None | Name of the region |
|
state | no | present |
| Indicate desired state of the resource |
# Assign a floating ip to the instance from an external network - quantum_floating_ip: state=present login_username=admin login_password=admin login_tenant_name=admin network_name=external_network instance_name=vm1 internal_network_name=internal_network
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/quantum_floating_ip_module.html