2015-11-11 13:00:02 +03:00
|
|
|
---
|
2016-10-14 17:37:36 +03:00
|
|
|
- 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'"
|
2020-01-13 10:32:36 +00:00
|
|
|
when: not hostvars[inventory_hostname]['ansible_' + api_interface]['active']
|
2016-10-14 17:37:36 +03:00
|
|
|
|
2019-09-11 20:47:00 +02:00
|
|
|
# kolla_address handles relevant address check
|
2016-10-14 17:37:36 +03:00
|
|
|
- name: Checking the api_interface ip address configuration
|
|
|
|
fail: "msg='Please check the api_interface settings - interface {{ api_interface }} ip address problem'"
|
2017-04-18 09:10:44 +02:00
|
|
|
when: api_interface_address is not defined
|