diff --git a/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml b/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml index 5b9eb11f6..283ef9618 100644 --- a/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml +++ b/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml @@ -4,6 +4,7 @@ with_first_found: - "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yml" - "{{ ansible_facts['os_family'] }}.yml" + when: container_package_name is undefined and container_service_name is undefined - name: debian based systems tasks include_tasks: debian_prerequisites.yml diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index 28ba31635..df30cbe5f 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -222,6 +222,13 @@ - (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined) or (ceph_docker_registry_username | length == 0 or ceph_docker_registry_password | length == 0) +- name: validate container service and container package + fail: + msg: 'both container_package_name and container_service_name should be defined' + when: + - (container_package_name is undefined and container_service_name is defined) or + (container_package_name is defined and container_service_name is undefined) + - name: validate openstack_keys key format fail: msg: '{{ item.name }} key format invalid'