Manages OpenStack VMs.
This role will provision and remove OpenStack VMs.
Ansible Collections:
collections:
- name: openstack.cloud
version: 2.1.0
OpenStack VM role parameters
Parameter | Comments |
---|---|
rhos_auth map / required |
Map with the authentication |
rhos_auth_type |
RHOS Authentication type 1) |
openstack_security_group |
Security group |
state |
State of the VM * present * absent
|
vm_name |
Name of the VM to be created |
openstack_vm_auto_floating_ip |
Auto associate a Floating IP * false <= Default * true
|
1) More information on the available keystone plugins on the RHOS documentation.
The rhos_auth
Map parameter must contain the required attributes for a successfull
authentication as selected with the rhos_auth_type
variable.
For a v3password
authentication the required contents are the following.
Name | Comments |
---|---|
auth_url |
Service authentication URL |
password |
Console login user |
project_domain_name |
Project domain |
project_name |
Tenant domain |
user_domain_name |
User domain |
username |
Console login user |
Output:
openstack_vm_ipv4
openstack_output
- name: "Create VM on OpenStack"
hosts: localhost
gather_facts: True
tasks:
- name: "Create VM"
ansible.builtin.include_role:
name: "snowdrop.cloud_infra.openstack_vm"
vars:
state: present
vm_name: snowdrop-vm
Apache License 2.0
This role has been created by the Snowdrop team.