mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
This isn't strictly necessary for the Openshift routes and can sometimes cause problems when the resource is already defined in openshift
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
# check_openshift.yml
|
|
---
|
|
- name: awx_openshift_project should be defined
|
|
assert:
|
|
that:
|
|
- awx_openshift_project is defined and awx_openshift_project != ''
|
|
msg: "Set the value of 'awx_openshift_project' in the inventory file."
|
|
|
|
- name: openshift_user should be defined
|
|
assert:
|
|
that:
|
|
- openshift_user is defined and openshift_user != ''
|
|
msg: "Set the value of 'openshift_user' in the inventory file."
|
|
|
|
- name: openshift_password should be defined
|
|
assert:
|
|
that:
|
|
- openshift_password is defined and openshift_password != ''
|
|
msg: "Set the value of 'openshift_password' in the inventory file."
|
|
|
|
- name: docker_registry should be defined if not using dockerhub
|
|
assert:
|
|
that:
|
|
- docker_registry is defined and docker_registry != ''
|
|
msg: "Set the value of 'docker_registry' in the inventory file."
|
|
when: dockerhub_base is not defined
|
|
|
|
- name: docker_registry_repository should be defined if not using dockerhub
|
|
assert:
|
|
that:
|
|
- docker_registry_repository is defined and docker_registry_repository != ''
|
|
msg: "Set the value of 'docker_registry_repository' in the inventory file."
|
|
when: dockerhub_base is not defined
|
|
|
|
- name: docker_registry_username should be defined if not using dockerhub
|
|
assert:
|
|
that:
|
|
- docker_registry_username is defined and docker_registry_username != ''
|
|
msg: "Set the value of 'docker_registry_username' in the inventory file."
|
|
when: dockerhub_base is not defined
|
|
|
|
- name: docker_registry_password should be defined
|
|
assert:
|
|
that:
|
|
- docker_registry_password is defined and docker_registry_password != ''
|
|
msg: "Set the value of 'docker_registry_password' in the inventory file."
|
|
when: dockerhub_base is not defined
|