kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml
Mark Goddard 9e3c774371 Ansible lint: remove comparison with true or false
Change-Id: I3caa4581ba276082e859f18aaa6638472f5fbe49
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:33:43 +00:00

14 lines
683 B
YAML

---
- name: Checking the api_interface is present
fail: "msg='Please check the api_interface property - interface {{ api_interface }} not found'"
when: api_interface not in ansible_interfaces
- name: Checking the api_interface is active
fail: "msg='Please check the api_interface settings - interface {{ api_interface }} is not active'"
when: not hostvars[inventory_hostname]['ansible_' + api_interface]['active']
# kolla_address handles relevant address check
- name: Checking the api_interface ip address configuration
fail: "msg='Please check the api_interface settings - interface {{ api_interface }} ip address problem'"
when: api_interface_address is not defined