add new name to multiple modules

This commit is contained in:
sean-m-ssullivan
2022-01-05 22:33:51 -05:00
committed by sean-m-sullivan
parent 03ed6e9755
commit bb8efbcc82
17 changed files with 172 additions and 34 deletions
@@ -74,9 +74,21 @@
that:
- result.copied
- name: Delete an Inventory
- name: Rename an inventory
inventory:
name: "copy_{{ inv_name1 }}"
new_name: "copy_{{ inv_name1 }}a"
organization: Default
state: present
register: result
- assert:
that:
- result.changed
- name: Delete an Inventory
inventory:
name: "copy_{{ inv_name1 }}a"
organization: Default
state: absent
register: result