ansible
Aristocrat-B2B/ansible/nutanix
terraform-nutanix-ansible A terraform module to run Ansible against a Nutanix VM The ansible module is meant to be used with Aristocrat-B2B/virtualmachine/nutanix Usage example ``hcl module "testvm" { source = "Aristocrat-B2B/virtualmachine/nutanix" version = "2.0.0" subnet_name = var.subnet_name nutanix_cluster_name = var.nutanix_cluster_name" vm_name = ["ansible-testvm-node-1", "ansible-testvm-node-2"] vm_memory = 4096 cpu = { "num_vcpus_per_socket" : 4, "num_sockets" : 1 } additional_disk_enabled = false image_name = "test-image.qcow2" static_ip_enabled = false ssh_user = var.ssh_user ssh_password = var.ssh_password } module "testvm_ansible" { depends_on = [module.testvm] source = "Aristocrat-B2B/ansible/nutanix" version = "2.0.0" module_name = "testvm" host_entries = module.testvm.host
| Name | Type | Description | Default |
|---|---|---|---|
| ansible_path | string | Path to Ansible Code Directory | required |
| message | string | Activity Message | required |
| ssh_password | string | SSH Password | required |
| module_name | string | Name of VM Creation Module | required |
| ssh_user | string | SSH Username | required |
| host_entries | map(any) | Map which describes hosts where ansible should be executed. Format: { host_name: | {} |
| group_vars_tpl | bool | Enable/Disable Group Var Templating( Template Extension - tpl) | false |
| environment_variables | map(any) | A Map of Environment Variables Required for Ansible Group_Vars Template in form | {} |
| group_vars_name | string | Name of Group Var Template(Do not provide extension) | "" |
| run_ansible | bool | true | |
| lock_nutanix_user | bool | Defines whether default nutanix user will be locked and the new one created | true |