mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 17:48:10 -03:30
This commit updates all files that weren't passing yamllint for them to pass. A new yamllint target has been added. One can run `tox -e yamllint` or `yamllint -s .` locally to ensure yaml files are still passing. This check will be enabled in the CI so it can get on every new contributions, and prevent merging non-compliant code. Signed-off-by: Yanis Guenane <yguenane@redhat.com>
15 lines
463 B
YAML
15 lines
463 B
YAML
---
|
|
- name: Get Namespace Detail
|
|
shell: "kubectl get namespace {{ kubernetes_namespace }}"
|
|
register: namespace_details
|
|
ignore_errors: true
|
|
|
|
- name: Create AWX Kubernetes Project
|
|
shell: "kubectl create namespace {{ kubernetes_namespace }}"
|
|
when: namespace_details.rc != 0
|
|
|
|
- name: Set postgresql service name
|
|
set_fact:
|
|
postgresql_service_name: "{{ kubernetes_deployment_name }}-postgresql"
|
|
when: "pg_hostname is not defined or pg_hostname == ''"
|