kolla-ansible/ansible/roles/keystone/tasks/precheck.yml
caoyuan 2b7bde0a7b Move keystone precheck into its own role
Change-Id: I5290c923530338682808205cc9c3957178de469c
Partially-implements: blueprint condition-pre-check
2017-01-15 16:14:55 +08:00

27 lines
788 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- keystone
register: container_facts
- name: Checking free port for Keystone Admin
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ keystone_admin_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['keystone'] is not defined
- inventory_hostname in groups['keystone']
- name: Checking free port for Keystone Public
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ keystone_public_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['keystone'] is not defined
- inventory_hostname in groups['keystone']