Skip to content

Commit 2b1913d

Browse files
committed
feat(role): Add hostvars check
!101
1 parent c6c6d91 commit 2b1913d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

role.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
- always
2424

2525

26+
- name: Confirm Existance of Required Host Variables
27+
ansible.builtin.assert:
28+
that:
29+
- is_virtual is defined
30+
- is_virtual != is_virtual
31+
- role is defined
32+
- role != ''
33+
msg: "Missing required variables variables must be set"
34+
tags:
35+
- always
36+
37+
2638
- name: Fetch DCIM ID from NetBox
2739
ansible.builtin.uri:
2840
url: |-

0 commit comments

Comments
 (0)