afdd11b9a2
Useful api_interface_address variable has been define here: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57 In order to simplify codebase we must use it as much as possible. Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
17 lines
888 B
YAML
17 lines
888 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: hostvars[inventory_hostname]['ansible_' + api_interface]['active'] != True
|
|
|
|
- name: Checking the api_interface configuration
|
|
fail: "msg='Please check the api_interface settings - interface {{ api_interface }} configuration missing'"
|
|
when: hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4'] is not defined
|
|
|
|
- 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
|