diff options
author | Yanis Guenane <yanis@guenane.org> | 2019-11-30 19:43:23 +0100 |
---|---|---|
committer | Yanis Guenane <yanis@guenane.org> | 2019-12-02 15:12:51 +0100 |
commit | ca247182dffe56a034c8220d745433e52c4f3684 (patch) | |
tree | f39844329478ce0f172483f4810a7e45bb3180dd /installer/roles/kubernetes/tasks/main.yml | |
parent | Merge pull request #5411 from marshmalien/5338-wf-inventory-lookup-permissions (diff) | |
download | awx-ca247182dffe56a034c8220d745433e52c4f3684.tar.xz awx-ca247182dffe56a034c8220d745433e52c4f3684.zip |
yamllint: Make all files in awx pass yamllint
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>
Diffstat (limited to 'installer/roles/kubernetes/tasks/main.yml')
-rw-r--r-- | installer/roles/kubernetes/tasks/main.yml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/installer/roles/kubernetes/tasks/main.yml b/installer/roles/kubernetes/tasks/main.yml index 1acd4422fd..faff3a83b2 100644 --- a/installer/roles/kubernetes/tasks/main.yml +++ b/installer/roles/kubernetes/tasks/main.yml @@ -32,7 +32,7 @@ {{ kubernetes_deployment_name }} \ -n {{ kubernetes_namespace }} -o=jsonpath='{.status.replicas}' register: deployment_details - ignore_errors: yes + ignore_errors: true - name: Set expected post-deployment Replicas value set_fact: @@ -48,7 +48,7 @@ - name: Get Postgres Service Detail shell: "{{ kubectl_or_oc }} describe svc {{ postgresql_service_name }} -n {{ kubernetes_namespace }}" register: postgres_svc_details - ignore_errors: yes + ignore_errors: true when: "pg_hostname is not defined or pg_hostname == ''" - name: Deploy PostgreSQL (OpenShift) @@ -72,7 +72,7 @@ -e POSTGRESQL_VERSION=10 \ -n {{ kubernetes_namespace }} register: openshift_pg_activate - no_log: yes + no_log: true when: - pg_hostname is not defined or pg_hostname == '' - postgres_svc_details is defined and postgres_svc_details.rc != 0 @@ -83,7 +83,7 @@ - name: Template PostgreSQL Deployment (Kubernetes) set_fact: pg_values: "{{ lookup('template', 'postgresql-values.yml.j2') }}" - no_log: yes + no_log: true - name: Deploy and Activate Postgres (Kubernetes) shell: | @@ -95,7 +95,7 @@ --values - \ stable/postgresql register: kubernetes_pg_activate - no_log: yes + no_log: true when: - pg_hostname is not defined or pg_hostname == '' - postgres_svc_details is defined and postgres_svc_details.rc != 0 @@ -206,7 +206,7 @@ - 'configmap' - 'deployment' - 'secret' - no_log: yes + no_log: true - name: Apply Deployment shell: | @@ -215,7 +215,7 @@ - "{{ configmap }}" - "{{ deployment }}" - "{{ secret }}" - no_log: yes + no_log: true - name: Delete any existing management pod shell: | @@ -249,21 +249,21 @@ {{ kubectl_or_oc }} -n {{ kubernetes_namespace }} exec ansible-tower-management -- \ bash -c "echo 'from django.contrib.auth.models import User; nsu = User.objects.filter(is_superuser=True).count(); exit(0 if nsu > 0 else 1)' | awx-manage shell" register: super_check - ignore_errors: yes + ignore_errors: true changed_when: super_check.rc > 0 - name: create django super user if it does not exist shell: | {{ kubectl_or_oc }} -n {{ kubernetes_namespace }} exec ansible-tower-management -- \ bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('{{ admin_user }}', '{{ admin_email }}', '{{ admin_password }}')\" | awx-manage shell" - no_log: yes + no_log: true when: super_check.rc > 0 - name: update django super user password shell: | {{ kubectl_or_oc }} -n {{ kubernetes_namespace }} exec ansible-tower-management -- \ bash -c "awx-manage update_password --username='{{ admin_user }}' --password='{{ admin_password }}'" - no_log: yes + no_log: true register: result changed_when: "'Password updated' in result.stdout" |