[ansible-lint] Avoid using free-form when calling module actions.

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

View file

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

View file

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

View file

@ -20,7 +20,9 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
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
- name: Set bodhi_version fact

View file

@ -12,7 +12,9 @@
pre_tasks:
- name: Include Global Variables
ansible.builtin.include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
ansible.builtin.include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: README
############################################
# actions to create the project in OpenShift

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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