more rename, mostly in test

This commit is contained in:
Seth Foster
2021-04-29 11:58:41 -04:00
parent a695274cb6
commit 7a63785255
105 changed files with 616 additions and 625 deletions

View File

@@ -61,7 +61,7 @@
- "{{ org_name }}"
- name: Create an Instance Group
tower_instance_group:
instance_group:
name: "{{ group_name1 }}"
state: present
register: result
@@ -71,7 +71,7 @@
- "result is changed"
- name: Add email notification
tower_notification_template:
notification_template:
name: "{{ email_not }}"
organization: Default
notification_type: email
@@ -87,7 +87,7 @@
state: present
- name: Add webhook notification
tower_notification_template:
notification_template:
name: "{{ webhook_not }}"
organization: Default
notification_type: webhook
@@ -98,7 +98,7 @@
register: result
- name: Create Job Template 1
tower_job_template:
job_template:
name: "{{ jt1 }}"
project: "{{ proj1 }}"
inventory: Demo Inventory
@@ -117,7 +117,7 @@
- "jt1_result is changed"
- name: Add a credential to this JT
tower_job_template:
job_template:
name: "{{ jt1 }}"
project: "{{ proj_result.id }}"
playbook: hello_world.yml
@@ -130,7 +130,7 @@
- "result is changed"
- name: Try to add the same credential to this JT
tower_job_template:
job_template:
name: "{{ jt1_result.id }}"
project: "{{ proj1 }}"
playbook: hello_world.yml
@@ -143,7 +143,7 @@
- "result is not changed"
- name: Add another credential to this JT
tower_job_template:
job_template:
name: "{{ jt1 }}"
project: "{{ proj1 }}"
playbook: hello_world.yml
@@ -157,7 +157,7 @@
- "result is changed"
- name: Remove a credential for this JT
tower_job_template:
job_template:
name: "{{ jt1 }}"
project: "{{ proj1 }}"
playbook: hello_world.yml
@@ -170,7 +170,7 @@
- "result is changed"
- name: Remove all credentials from this JT
tower_job_template:
job_template:
name: "{{ jt1 }}"
project: "{{ proj1 }}"
playbook: hello_world.yml
@@ -182,13 +182,13 @@
- "result is changed"
- name: Copy Job Template
tower_job_template:
job_template:
name: "copy_{{ jt1 }}"
copy_from: "{{ jt1 }}"
state: "present"
- name: Delete copied Job Template
tower_job_template:
job_template:
name: "copy_{{ jt1 }}"
job_type: run
state: absent
@@ -196,7 +196,7 @@
# This doesnt work if you include the credentials parameter
- name: Delete Job Template 1
tower_job_template:
job_template:
name: "{{ jt1 }}"
playbook: hello_world.yml
job_type: run
@@ -211,7 +211,7 @@
- "result is changed"
- name: Create Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
organization: Default
project: "{{ proj1 }}"
@@ -229,7 +229,7 @@
- "result is changed"
- name: Add survey to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
survey_enabled: true
survey_spec:
@@ -251,7 +251,7 @@
- "result is changed"
- name: Re Add survey to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
survey_enabled: true
survey_spec:
@@ -273,7 +273,7 @@
- "result is not changed"
- name: Add question to survey to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
survey_enabled: true
survey_spec:
@@ -300,7 +300,7 @@
- "result is changed"
- name: Remove survey from Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
survey_enabled: false
survey_spec: {}
@@ -311,7 +311,7 @@
- "result is changed"
- name: Add started notifications to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
notification_templates_started:
- "{{ email_not }}"
@@ -323,7 +323,7 @@
- "result is changed"
- name: Re Add started notifications to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
notification_templates_started:
- "{{ email_not }}"
@@ -335,7 +335,7 @@
- "result is not changed"
- name: Add success notifications to Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
notification_templates_success:
- "{{ email_not }}"
@@ -347,7 +347,7 @@
- "result is changed"
- name: Remove "on start" webhook notification from Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
notification_templates_started:
- "{{ email_not }}"
@@ -359,7 +359,7 @@
- name: Delete Job Template 2
tower_job_template:
job_template:
name: "{{ jt2 }}"
project: "{{ proj1 }}"
inventory: Demo Inventory
@@ -406,18 +406,18 @@
# You can't delete a label directly so no cleanup needed
- name: Delete email notification
tower_notification_template:
notification_template:
name: "{{ email_not }}"
organization: Default
state: absent
- name: Delete the instance groups
tower_instance_group:
instance_group:
name: "{{ group_name1 }}"
state: absent
- name: Delete webhook notification
tower_notification_template:
notification_template:
name: "{{ webhook_not }}"
organization: Default
state: absent