aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/prechecks/tasks/port_checks.yml
blob: 576baa6d2df7d3a5f0363eb4f0d14883253fb762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- 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_facts.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_facts[api_interface | replace('-', '_')]['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