|
|
|
@ -2,9 +2,7 @@
|
|
|
|
|
# Copyright: (c) 2019, Abhijeet Kasurde <akasurde@redhat.com>
|
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
|
|
|
|
- when: vcsim is not defined
|
|
|
|
|
block:
|
|
|
|
|
- name: Create different types of category with associable object types
|
|
|
|
|
- name: Create different types of category with associable object types
|
|
|
|
|
vmware_category:
|
|
|
|
|
hostname: '{{ vcenter_hostname }}'
|
|
|
|
|
username: '{{ vcenter_username }}'
|
|
|
|
@ -32,7 +30,7 @@
|
|
|
|
|
- vApp
|
|
|
|
|
- Virtual Machine
|
|
|
|
|
|
|
|
|
|
- name: Delete different types of category with associable object types
|
|
|
|
|
- name: Delete different types of category with associable object types
|
|
|
|
|
vmware_category:
|
|
|
|
|
hostname: '{{ vcenter_hostname }}'
|
|
|
|
|
username: '{{ vcenter_username }}'
|
|
|
|
@ -57,7 +55,7 @@
|
|
|
|
|
- vApp
|
|
|
|
|
- Virtual Machine
|
|
|
|
|
|
|
|
|
|
- name: Create category with 2 associable object types
|
|
|
|
|
- name: Create category with 2 associable object types
|
|
|
|
|
vmware_category:
|
|
|
|
|
hostname: '{{ vcenter_hostname }}'
|
|
|
|
|
username: '{{ vcenter_username }}'
|
|
|
|
@ -71,12 +69,12 @@
|
|
|
|
|
state: present
|
|
|
|
|
register: category_change
|
|
|
|
|
|
|
|
|
|
- name: Assert change is made
|
|
|
|
|
- name: Assert change is made
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- category_change.changed
|
|
|
|
|
|
|
|
|
|
- name: Delete category with 2 associable object types
|
|
|
|
|
- name: Delete category with 2 associable object types
|
|
|
|
|
vmware_category:
|
|
|
|
|
hostname: '{{ vcenter_hostname }}'
|
|
|
|
|
username: '{{ vcenter_username }}'
|
|
|
|
@ -86,7 +84,7 @@
|
|
|
|
|
state: absent
|
|
|
|
|
register: category_change
|
|
|
|
|
|
|
|
|
|
- name: Assert change is made
|
|
|
|
|
- name: Assert change is made
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- category_change.changed
|
|
|
|
|