page_title | subcategory | description |
---|---|---|
morpheus_ansible_playbook_task Resource - terraform-provider-morpheus |
Provides a Morpheus ansible playbook task resource |
Provides a Morpheus ansible playbook task resource
resource "morpheus_ansible_playbook_task" "ansplaybook" {
name = "tfansibletest"
code = "tfansibletest"
labels = ["demo", "terraform"]
ansible_repo_id = "5"
git_ref = "master"
playbook = "mongo_install"
tags = "mongo"
skip_tags = "web"
command_options = "-b"
execute_target = "local"
retryable = true
retry_count = 1
retry_delay_seconds = 10
allow_custom_config = true
}
name
(String) The name of the ansible playbook taskplaybook
(String) The name of the ansible playbook to execute
allow_custom_config
(Boolean) Custom configuration data to pass during the execution of the ansible playbookansible_repo_id
(String) The id of the ansible repocode
(String) The code of the ansible playbook taskcommand_options
(String) Additional commands options to pass during the execution of the ansible playbookexecute_target
(String) The target that the ansible playbook will be executed ongit_ref
(String) The git reference of the ansible repo to pull (main, master, etc.)labels
(Set of String) The organization labels associated with the 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 failureskip_tags
(String) The tags to skip during execution of the ansible playbooktags
(String) The tags to specify during execution of the ansible playbook
id
(String) The ID of the ansible playbook task
Import is supported using the following syntax:
terraform import morpheus_ansible_playbook_task.tf_example_ansible_playbook_task 1