blob: 31b495c0f4a7bcb8ae53dfc32fe36f42d0efae11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- name: Get Category facts
vmware_category_info:
register: cat_info
- name: Get Category id for {{ cluster_category }}
set_fact:
cluster_category_id: "{{ cat_info.tag_category_info[0].category_id }}"
- name: Create a tag for cluster
vmware_tag:
category_id: '{{ cluster_category_id }}'
tag_name: '{{ cluster_tag }}'
tag_description: '{{ cluster_tag }} Description'
state: present
when: cluster_category_id is defined
|