Restructuring modules so that lookup don't happen if deleting

This commit is contained in:
John Westcott IV
2020-04-27 14:11:23 -04:00
parent fa73fe76b2
commit 7f66f084f1
18 changed files with 143 additions and 143 deletions

View File

@@ -40,17 +40,13 @@
that:
- "result is changed"
- name: Delete the source inventory
- name: Delete the inventory source with an invalid cred, source_project, sourece_script specified
tower_inventory_source:
name: "{{ openstack_inv_source }}"
description: Source for Test inventory
inventory: "{{ openstack_inv }}"
credential: "{{ openstack_cred }}"
overwrite: true
update_on_launch: true
source_vars:
private: false
source: openstack
credential: "Does Not Exit"
source_project: "Does Not Exist"
source_script: "Does Not Exist"
state: absent
- assert:

View File

@@ -147,10 +147,11 @@
- name: Delete Job Template 1
tower_job_template:
name: "{{ jt1 }}"
project: "{{ proj1 }}"
inventory: Demo Inventory
playbook: hello_world.yml
job_type: run
project: "Does Not Exist"
inventory: "Does Not Exist"
webhook_credential: "Does Not Exist"
state: absent
register: result

View File

@@ -104,9 +104,11 @@
unified_job_template: "{{ jt1_name }}"
workflow: "{{ wfjt_name }}"
- name: Delete a workflow job template
- name: Delete a workflow job template with an invalid inventory and webook_credential
tower_workflow_job_template:
name: "{{ wfjt_name }}"
inventory: "Does Not Exist"
webhook_credential: "Does Not Exist"
state: absent
register: result