The answer is simple and it showed on ansible error message. First of all I need to check if var is defined. {% if interfaces.vlan1 is defined ...
ansible-check-if-key-exists
939c2ea5af
ansible check exists, ansible check if directory exists, ansible check if user exists, ansible check if service exists, ansible check if line exists in file, ansible check if variable exists, ansible check if string exists in file, ansible playbook to check if file exists, ansible check mount exists, ansible check if command exists, ansible if exists, ansible if exists variable, ansible if exists else, ansible check directory exists, ansible check user exists, ansible check service exists, ansible check command exists, ansible check group exists
Σχόλια