page_title | subcategory | description |
---|---|---|
morpheus_ansible_tower_task Resource - terraform-provider-morpheus |
Provides a Morpheus vRealize Orchestrator (vRO) task resource |
Provides a Morpheus vRealize Orchestrator (vRO) task resource
data "morpheus_ansible_tower_inventory" "example_ansible_tower_inventory" {
name = "Demo Inventory"
}
data "morpheus_ansible_tower_job_template" "example_ansible_tower_job_template" {
name = "Demo Job Template"
}
data "morpheus_integration" "tf_example_ansible_tower_integration" {
name = "Demo Ansible Tower"
}
resource "morpheus_ansible_tower_task" "tfexample_ansible_tower_task" {
name = "tfexample_ansible_tower_task"
code = "tfexample-ansible-tower-task"
labels = ["demo", "terraform"]
ansible_tower_integration_id = data.morpheus_integration.tf_example_ansible_tower_integration.id
ansible_tower_inventory_id = data.morpheus_ansible_tower_inventory.example_ansible_tower_inventory.id
group = "demo"
job_template_id = data.morpheus_ansible_tower_job_template.example_ansible_tower_job_template.id
scm_override = "main"
execute_mode = "executeAll"
execute_target = "local"
retryable = true
retry_count = 5
retry_delay_seconds = 10
allow_custom_config = true
visibility = "public"
}
ansible_tower_integration_id
(Number) The ID of the ansible tower integrationansible_tower_inventory_id
(Number) The ID of the ansible tower inventoryexecute_mode
(String) The ansible tower execution mode (executeHost, executeGroup, executeAll, off)job_template_id
(Number) The ID of the ansible tower job templatename
(String) The name of the ansible tower task
allow_custom_config
(Boolean) Custom configuration data to pass during the execution of the ansible tower job taskcode
(String) The code of the ansible tower taskexecute_target
(String) The target that the ansible tower job will be executed on (local, remote, resource)group
(String) The name of a new or existing group in the inventorylabels
(Set of String) The organization labels associated with the ansible tower task (Only supported on Morpheus 5.5.3 or higher)retry_count
(Number) The number of times to retry the task if there is a failureretry_delay_seconds
(Number) The number of seconds to wait between retry attemptsretryable
(Boolean) Whether to retry the task if there is a failurescm_override
(String) The git reference overridevisibility
(String) The visibility of the ansible tower task (public or private)
id
(String) The ID of the ansible tower task
Import is supported using the following syntax:
terraform import morpheus_ansible_tower_task.tf_example_ansible_tower_task 1