diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml index b1a5aa2e7d..93c680ac9b 100644 --- a/ansible/roles/prechecks/tasks/port_checks.yml +++ b/ansible/roles/prechecks/tasks/port_checks.yml @@ -95,6 +95,22 @@ state: stopped when: inventory_hostname in groups['haproxy'] +- name: Checking free port for Etcd Peer + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ etcd_peer_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['etcd'] + +- name: Checking free port for Etcd Client + wait_for: + host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" + port: "{{ etcd_client_port }}" + connect_timeout: 1 + state: stopped + when: inventory_hostname in groups['etcd'] + - name: Checking free port for Glance API wait_for: host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"