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

@@ -183,6 +183,18 @@
that:
- job is successful
- name: Rename an inventory
project:
name: "{{ project_name3 }}"
new_name: "{{ project_name3 }}a"
organization: Default
state: present
register: result
- assert:
that:
- result.changed
always:
- name: Delete the test job_template
job_template:
@@ -197,6 +209,12 @@
organization: Default
state: absent
- name: Delete the test project 3a
project:
name: "{{ project_name3 }}a"
organization: Default
state: absent
- name: Delete the test project 2
project:
name: "{{ project_name2 }}"