This directory contains Ansible automation for provision management and operations.
The Provision automation provides playbooks and roles for managing and configuring provision infrastructure and services.
| Role | Description |
|---|---|
| determine_vmware_placement | Role for determine vmware placement |
| generate_vm_names | Role for generate vm names |
| shadowman_agentcert | Role for shadowman agentcert |
| shadowman_aws_account_clear | Role for shadowman aws account clear |
| shadowman_deprovision | Role for shadowman deprovision |
| shadowman_hosted_cluster | Role for shadowman hosted cluster |
| shadowman_hosted_cluster_remove | Role for shadowman hosted cluster remove |
| shadowman_hostnameset | Role for shadowman hostnameset |
| shadowman_inventory_collection | Role for shadowman inventory collection |
| shadowman_provision | Role for shadowman provision |
| shadowman_snapshots | Role for shadowman snapshots |
| shadowman_soft_delete | Role for shadowman soft delete |
| shadowman_soft_delete_batch | Batch Soft Delete hosts no longer in the inventory from the Controller's host metrics. |
| shadowman_template_create | Role for shadowman template create |
| shadowman_unsubscribe | Role for shadowman unsubscribe |
| shadowman_vmware_convert_to_template | Role for shadowman vmware convert to template |
| shadowman_vmware_convert_to_vm | Role for shadowman vmware convert to vm |
| shadowman_vmware_update_template | Role for shadowman vmware update template |
| Playbook | Description | Target Hosts |
|---|---|---|
| aws_clear_role.yml | Playbook for aws clear role | localhost |
| determine_vcenter_params.yml | Playbook for determine vcenter params | localhost |
| generate_vm_names.yml | Playbook for generate vm names | localhost |
| removefromAD.yml | Playbook for removefromAD | {{ vm_name }} |
| removesubs.yml | Playbook for removesubs | {{ vm_name |
| rhv_hosted_ocp_create.yml | Playbook for rhv hosted ocp create | localhost, just_created |
| rhv_hosted_ocp_remove.yml | Playbook for rhv hosted ocp remove | localhost |
| rhv_template_create.yml | Playbook for rhv template create | localhost |
| rhv_vm_create.yml | Playbook for rhv vm create | localhost, just_created |
| rhv_vm_remove.yml | Playbook for rhv vm remove | {{ vm_name |
| rhv_vmfortemplate_create.yml | Playbook for rhv vmfortemplate create | localhost |
| shadowman_inventory_sync_collection.yml | Playbook for shadowman inventory sync collection | localhost |
| snapshot_create.yml | Playbook for snapshot create | localhost |
| snapshot_pull_collection.yml | Playbook for snapshot pull collection | localhost |
| snapshot_restore.yml | Playbook for snapshot restore | localhost |
| terraform create_vmware.yml | Playbook for terraform create vmware | localhost, just_created |
| terraform_hostnameset_vmware.yml | Playbook for terraform hostnameset vmware | localhost, just_created |
| terraform_hostnameset_vmware_actions.yml | Playbook for terraform hostnameset vmware actions | localhost, just_created |
| vm_create_role.yml | Playbook for vm create role | localhost, just_created |
| vm_remove_role.yml | Playbook for vm remove role | {{ vm_name |
| vm_soft_delete.yml | Playbook for vm soft delete | localhost |
| vm_soft_delete_batch.yml | Playbook for vm soft delete batch | localhost |
| vmware_template_update.yml | Playbook for vmware template update | localhost, justcreated, localhost |
| vmware_vm_create.yml | Playbook for vmware vm create | localhost, just_created |
| vmware_vm_remove.yml | Playbook for vmware vm remove | {{ vm_name |
# Run a playbook
ansible-navigator run aws_clear_role.yml
# Run in stdout mode
ansible-navigator run aws_clear_role.yml -m stdout- hosts: target_hosts
roles:
- shadowman_agentcert- Ansible 2.9 or higher (via ansible-navigator)
- Required collections (see
collections/requirements.ymlif present) - Appropriate access credentials configured via environment variables
Ansible-Provision/
├── roles/ # Ansible roles
├── *.yml # Playbooks
├── collections/ # Collection dependencies (if present)
└── ansible-navigator.yml # Navigator configuration