[yamllint] - fix yaml linting issues in openshift playbooks

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2024-11-13 18:33:57 +10:00
parent f942bd9df7
commit cb7a0f2684
15 changed files with 23 additions and 26 deletions

View file

@ -28,7 +28,7 @@
ansible.builtin.command: oc adm pod-network make-projects-global application-monitoring
- name: Copy files
ansible.builtin.copy:
ansible.builtin.copy:
src: "{{ roles_path }}/openshift-apps/application-monitoring/files/ dest=/etc/openshift_apps/application-monitoring/"
- name: Prometheus CRDs
@ -42,4 +42,3 @@
- name: Prometheus RBAC
ansible.builtin.command: oc -n application-monitoring apply -f /etc/openshift_apps/application-monitoring/prometheus-operator/example/rbac/prometheus/

View file

@ -5,7 +5,7 @@
tasks:
- name: Install psycopg2 for the postgresql ansible modules
ansible.builtin.package:
ansible.builtin.package:
name: python3-psycopg2
state: present
tags:

View file

@ -20,8 +20,8 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: README
- name: Include Bodhi Variables
ansible.builtin.include_vars: /srv/web/infra/ansible/vars/apps/bodhi.yml

View file

@ -12,7 +12,7 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars:
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: README

View file

@ -15,7 +15,7 @@
state: directory
owner: root
group: root
mode: 0750
mode: "0750"
roles:
- role: openshift/object

View file

@ -22,7 +22,7 @@
- kevin
tags:
- apply-appowners
- role: openshift/secret-file
app: discourse2fedmsg
secret_name: fedora-messaging-ca
@ -47,7 +47,7 @@
app: discourse2fedmsg
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: discourse2fedmsg
template: configmap.yml

View file

@ -66,11 +66,11 @@
app: fedora-packages-static
objecttype: project
objectname: fedora-packages-static
tags: [ never, delete ]
tags: [never, delete]
# to run: sudo rbac-playbook -l staging -t deletesolr openshift-apps/fedora-packages-static.yml
- role: openshift/object-delete
app: solr
objecttype: project
objectname: solr
tags: [ never, deletesolr ]
tags: [never, deletesolr]

View file

@ -5,8 +5,8 @@
tasks:
- name: Install psycopg2 for the postgresql ansible modules
ansible.builtin.package:
name: python3-psycopg2
ansible.builtin.package:
name: python3-psycopg2
state: present
tags:
- packages

View file

@ -32,7 +32,7 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars:
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: README
@ -107,4 +107,4 @@
- role: openshift/object
app: kerneltest
file: deploymentconfig.yml
objectname: deploymentconfig.yml
objectname: deploymentconfig.yml

View file

@ -37,7 +37,7 @@
tasks:
- name: Apply objects
ansible.builtin.include_role:
ansible.builtin.include_role:
name: openshift/object
vars:
template: "{{ item }}.yml"
@ -52,7 +52,7 @@
- frontend-service
- name: Apply Deployment
ansible.builtin.include_role:
ansible.builtin.include_role:
name: openshift/object
vars:
template: backend-deployment.yml
@ -67,7 +67,7 @@
label: "{{ item.name }}"
- name: Apply CronJob
ansible.builtin.include_role:
ansible.builtin.include_role:
name: openshift/object
vars:
template: cronjob.yml

View file

@ -2,7 +2,7 @@
hosts: os_control[0]:os_control_stg[0]
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
@ -76,7 +76,7 @@
- never
- init
- f10
- name: Run initial f.20 import
ansible.builtin.command: "oc -n languages create job stats-20-{{ lookup('pipe', 'date +%s') }}-init --from=cronjob/stats-20"
tags:
@ -97,4 +97,3 @@
- never
- init
- latest

View file

@ -14,7 +14,7 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars:
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: README

View file

@ -3,7 +3,7 @@
hosts: os_control[0]
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
@ -70,4 +70,3 @@
tags:
- never
- delete

View file

@ -5,7 +5,7 @@
tasks:
- name: Install psycopg2 for the postgresql ansible modules
ansible.builtin.package:
ansible.builtin.package:
name: python3-psycopg2
state: present
tags:

View file

@ -5,7 +5,7 @@
tasks:
- name: Install psycopg2 for the postgresql ansible modules
ansible.builtin.package:
ansible.builtin.package:
name: python3-psycopg2
state: present
tags: