Hello!
How check if variable in Service or Host object is set or is not null?
Best regards.
Tadeja
Two examples:
Check if host name matches and if variable is set:
assign where match("TS-*-LR01", host.name) && host.vars.dmvpn
Check if host name matches and if variable is NOT set
assign where match("TS-*-LR01", host.name) && ! host.vars.dmvpn
1 Like