Refactor pre-install checks into neutron_check.yml

Change-Id: I213cc4771ad0a1b71d4b03c779f19ac42a73205a
This commit is contained in:
Mohammed Naser 2018-11-02 18:48:40 +01:00
parent f730c52ff0
commit dfce6dba6e
2 changed files with 10 additions and 10 deletions

View File

@ -27,16 +27,6 @@
tags:
- always
- name: Fail if service was deployed using a different installation method
fail:
msg: "Switching installation methods for OpenStack services is not supported"
when:
- ansible_local is defined
- ansible_local.openstack_ansible is defined
- ansible_local.openstack_ansible.neutron is defined
- ansible_local.openstack_ansible.neutron.install_method is defined
- ansible_local.openstack_ansible.neutron.install_method != neutron_install_method
- name: Gather variables for installation method
include_vars: "{{ neutron_install_method }}_install.yml"
tags:

View File

@ -21,3 +21,13 @@
when:
- neutron_fwaas | bool
- neutron_fwaas_v2 | bool
- name: Fail if service was deployed using a different installation method
fail:
msg: "Switching installation methods for OpenStack services is not supported"
when:
- ansible_local is defined
- ansible_local.openstack_ansible is defined
- ansible_local.openstack_ansible.neutron is defined
- ansible_local.openstack_ansible.neutron.install_method is defined
- ansible_local.openstack_ansible.neutron.install_method != neutron_install_method