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

@@ -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