summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awx_collection/plugins/lookup/schedule_rrule.py6
-rw-r--r--awx_collection/plugins/lookup/schedule_rruleset.py22
-rw-r--r--awx_collection/plugins/modules/notification_template.py12
-rw-r--r--awx_collection/plugins/modules/workflow_job_template.py24
-rw-r--r--awx_collection/plugins/modules/workflow_job_template_node.py90
5 files changed, 77 insertions, 77 deletions
diff --git a/awx_collection/plugins/lookup/schedule_rrule.py b/awx_collection/plugins/lookup/schedule_rrule.py
index 8931a75dfb..235bf9bb11 100644
--- a/awx_collection/plugins/lookup/schedule_rrule.py
+++ b/awx_collection/plugins/lookup/schedule_rrule.py
@@ -73,9 +73,9 @@ DOCUMENTATION = """
"""
EXAMPLES = """
- - name: Create a string for a schedule
- debug:
- msg: "{{ lookup('awx.awx.schedule_rrule', 'none', start_date='1979-09-13 03:45:07') }}"
+- name: Create a string for a schedule
+ debug:
+ msg: "{{ lookup('awx.awx.schedule_rrule', 'none', start_date='1979-09-13 03:45:07') }}"
"""
RETURN = """
diff --git a/awx_collection/plugins/lookup/schedule_rruleset.py b/awx_collection/plugins/lookup/schedule_rruleset.py
index bbb9f6542e..2ab34d5942 100644
--- a/awx_collection/plugins/lookup/schedule_rruleset.py
+++ b/awx_collection/plugins/lookup/schedule_rruleset.py
@@ -107,17 +107,17 @@ DOCUMENTATION = """
"""
EXAMPLES = """
- - name: Create a ruleset for everyday except Sundays
- set_fact:
- complex_rule: "{{ lookup(awx.awx.schedule_rruleset, '2022-04-30 10:30:45', rules=rrules, timezone='UTC' ) }}"
- vars:
- rrules:
- - frequency: 'day'
- interval: 1
- - frequency: 'day'
- interval: 1
- byweekday: 'sunday'
- include: False
+- name: Create a ruleset for everyday except Sundays
+ set_fact:
+ complex_rule: "{{ lookup(awx.awx.schedule_rruleset, '2022-04-30 10:30:45', rules=rrules, timezone='UTC' ) }}"
+ vars:
+ rrules:
+ - frequency: 'day'
+ interval: 1
+ - frequency: 'day'
+ interval: 1
+ byweekday: 'sunday'
+ include: False
"""
RETURN = """
diff --git a/awx_collection/plugins/modules/notification_template.py b/awx_collection/plugins/modules/notification_template.py
index e44e2be5e0..50469d2e99 100644
--- a/awx_collection/plugins/modules/notification_template.py
+++ b/awx_collection/plugins/modules/notification_template.py
@@ -115,12 +115,12 @@ EXAMPLES = '''
- general
token: cefda9e2be1f21d11cdd9452f5b7f97fda977f42
messages:
- started:
- message: "{{ '{{ job_friendly_name }}{{ job.id }} started' }}"
- success:
- message: "{{ '{{ job_friendly_name }} completed in {{ job.elapsed }} seconds' }}"
- error:
- message: "{{ '{{ job_friendly_name }} FAILED! Please look at {{ job.url }}' }}"
+ started:
+ message: "{{ '{{ job_friendly_name }}{{ job.id }} started' }}"
+ success:
+ message: "{{ '{{ job_friendly_name }} completed in {{ job.elapsed }} seconds' }}"
+ error:
+ message: "{{ '{{ job_friendly_name }} FAILED! Please look at {{ job.url }}' }}"
state: present
controller_config_file: "~/tower_cli.cfg"
diff --git a/awx_collection/plugins/modules/workflow_job_template.py b/awx_collection/plugins/modules/workflow_job_template.py
index f5ac994aaa..5db78891a0 100644
--- a/awx_collection/plugins/modules/workflow_job_template.py
+++ b/awx_collection/plugins/modules/workflow_job_template.py
@@ -548,25 +548,25 @@ EXAMPLES = '''
success_nodes:
- identifier: node401
failure_nodes:
- - identifier: node301
+ - identifier: node301
always_nodes: []
credentials:
- - name: cyberark
- organization:
- name: Default
+ - name: cyberark
+ organization:
+ name: Default
instance_groups:
- - name: SunCavanaugh Cloud
+ - name: SunCavanaugh Cloud
labels:
- - name: Custom Label
- organization:
- name: Default
+ - name: Custom Label
+ organization:
+ name: Default
- all_parents_must_converge: false
identifier: node301
unified_job_template:
- description: Approval node for example
- timeout: 900
- type: workflow_approval
- name: Approval Node for Demo
+ description: Approval node for example
+ timeout: 900
+ type: workflow_approval
+ name: Approval Node for Demo
related:
success_nodes:
- identifier: node401
diff --git a/awx_collection/plugins/modules/workflow_job_template_node.py b/awx_collection/plugins/modules/workflow_job_template_node.py
index 71ca1c1400..8c94b32531 100644
--- a/awx_collection/plugins/modules/workflow_job_template_node.py
+++ b/awx_collection/plugins/modules/workflow_job_template_node.py
@@ -206,51 +206,51 @@ EXAMPLES = '''
- name: Create workflow with 2 Job Templates and an approval node in between
block:
- - name: Create a workflow job template
- tower_workflow_job_template:
- name: my-workflow-job-template
- ask_scm_branch_on_launch: true
- organization: Default
-
- - name: Create 1st node
- tower_workflow_job_template_node:
- identifier: my-first-node
- workflow_job_template: my-workflow-job-template
- unified_job_template: some_job_template
- organization: Default
-
- - name: Create 2nd approval node
- tower_workflow_job_template_node:
- identifier: my-second-approval-node
- workflow_job_template: my-workflow-job-template
- organization: Default
- approval_node:
- description: "Do this?"
- name: my-second-approval-node
- timeout: 3600
-
- - name: Create 3rd node
- tower_workflow_job_template_node:
- identifier: my-third-node
- workflow_job_template: my-workflow-job-template
- unified_job_template: some_other_job_template
- organization: Default
-
- - name: Link 1st node to 2nd Approval node
- tower_workflow_job_template_node:
- identifier: my-first-node
- workflow_job_template: my-workflow-job-template
- organization: Default
- success_nodes:
- - my-second-approval-node
-
- - name: Link 2nd Approval Node 3rd node
- tower_workflow_job_template_node:
- identifier: my-second-approval-node
- workflow_job_template: my-workflow-job-template
- organization: Default
- success_nodes:
- - my-third-node
+ - name: Create a workflow job template
+ tower_workflow_job_template:
+ name: my-workflow-job-template
+ ask_scm_branch_on_launch: true
+ organization: Default
+
+ - name: Create 1st node
+ tower_workflow_job_template_node:
+ identifier: my-first-node
+ workflow_job_template: my-workflow-job-template
+ unified_job_template: some_job_template
+ organization: Default
+
+ - name: Create 2nd approval node
+ tower_workflow_job_template_node:
+ identifier: my-second-approval-node
+ workflow_job_template: my-workflow-job-template
+ organization: Default
+ approval_node:
+ description: "Do this?"
+ name: my-second-approval-node
+ timeout: 3600
+
+ - name: Create 3rd node
+ tower_workflow_job_template_node:
+ identifier: my-third-node
+ workflow_job_template: my-workflow-job-template
+ unified_job_template: some_other_job_template
+ organization: Default
+
+ - name: Link 1st node to 2nd Approval node
+ tower_workflow_job_template_node:
+ identifier: my-first-node
+ workflow_job_template: my-workflow-job-template
+ organization: Default
+ success_nodes:
+ - my-second-approval-node
+
+ - name: Link 2nd Approval Node 3rd node
+ tower_workflow_job_template_node:
+ identifier: my-second-approval-node
+ workflow_job_template: my-workflow-job-template
+ organization: Default
+ success_nodes:
+ - my-third-node
'''
from ..module_utils.controller_api import ControllerAPIModule