add new name to multiple modules

This commit is contained in:
sean-m-ssullivan
2021-11-22 12:53:27 -05:00
committed by sean-m-sullivan
parent 03ed6e9755
commit bb8efbcc82
17 changed files with 172 additions and 34 deletions

View File

@@ -34,14 +34,28 @@
that:
- "result is failed"
always:
- name: Delete the Test EE
- name: Rename the Test EEs
execution_environment:
name: "{{ ee_name }}"
state: absent
new_name: "{{ ee_name }}a"
image: quay.io/ansible/awx-ee
register: result
- assert:
that:
- "result is changed"
always:
- name: Delete the Test EEs
execution_environment:
name: "{{ item }}"
state: absent
image: quay.io/ansible/awx-ee
register: result
loop:
- "{{ ee_name }}"
- "{{ ee_name }}a"
- assert:
that:
- "result is changed"