quantum_floating_ip - Add/Remove floating IP from an instance

Synopsis

New in version 1.2.

Add or Remove a floating IP to an instance

Options

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 no None
        The name of the network of the port to associate with the floating ip. Necessary when VM multiple networks. (added in Ansible 1.5)
        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
                  • present
                  • absent
                  Indicate desired state of the resource

                  Note

                  Requires novaclient

                  Note

                  Requires quantumclient

                  Note

                  Requires neutronclient

                  Note

                  Requires keystoneclient

                  Examples


                  # 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