[ansible-lint] Avoid using free-form when calling module actions.
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
f89ed1cf08
commit
f942bd9df7
10 changed files with 32 additions and 12 deletions
|
@ -28,7 +28,8 @@
|
||||||
ansible.builtin.command: oc adm pod-network make-projects-global application-monitoring
|
ansible.builtin.command: oc adm pod-network make-projects-global application-monitoring
|
||||||
|
|
||||||
- name: Copy files
|
- 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
|
- name: Prometheus CRDs
|
||||||
ansible.builtin.command: oc -n application-monitoring apply -f /etc/openshift_apps/application-monitoring/prometheus-operator/example/prometheus-operator-crd/
|
ansible.builtin.command: oc -n application-monitoring apply -f /etc/openshift_apps/application-monitoring/prometheus-operator/example/prometheus-operator-crd/
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install psycopg2 for the postgresql ansible modules
|
- 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:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Include Global Variables
|
- 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
|
- name: Include Bodhi Variables
|
||||||
ansible.builtin.include_vars: /srv/web/infra/ansible/vars/apps/bodhi.yml
|
ansible.builtin.include_vars: /srv/web/infra/ansible/vars/apps/bodhi.yml
|
||||||
- name: Set bodhi_version fact
|
- name: Set bodhi_version fact
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Include Global Variables
|
- 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
|
# actions to create the project in OpenShift
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install psycopg2 for the postgresql ansible modules
|
- 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:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,9 @@
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Include Global Variables
|
- 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:
|
roles:
|
||||||
|
|
|
@ -37,7 +37,8 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Apply objects
|
- name: Apply objects
|
||||||
ansible.builtin.include_role: name=openshift/object
|
ansible.builtin.include_role:
|
||||||
|
name: openshift/object
|
||||||
vars:
|
vars:
|
||||||
template: "{{ item }}.yml"
|
template: "{{ item }}.yml"
|
||||||
objectname: "{{ item }}.yml"
|
objectname: "{{ item }}.yml"
|
||||||
|
@ -51,7 +52,8 @@
|
||||||
- frontend-service
|
- frontend-service
|
||||||
|
|
||||||
- name: Apply Deployment
|
- name: Apply Deployment
|
||||||
ansible.builtin.include_role: name=openshift/object
|
ansible.builtin.include_role:
|
||||||
|
name: openshift/object
|
||||||
vars:
|
vars:
|
||||||
template: backend-deployment.yml
|
template: backend-deployment.yml
|
||||||
objectname: "{{ item.name }}-deployment.yml"
|
objectname: "{{ item.name }}-deployment.yml"
|
||||||
|
@ -65,7 +67,8 @@
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
|
|
||||||
- name: Apply CronJob
|
- name: Apply CronJob
|
||||||
ansible.builtin.include_role: name=openshift/object
|
ansible.builtin.include_role:
|
||||||
|
name: openshift/object
|
||||||
vars:
|
vars:
|
||||||
template: cronjob.yml
|
template: cronjob.yml
|
||||||
objectname: "{{ item.name }}-cronjob.yml"
|
objectname: "{{ item.name }}-cronjob.yml"
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Include Global Variables
|
- 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:
|
roles:
|
||||||
- role: openshift/project
|
- role: openshift/project
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install psycopg2 for the postgresql ansible modules
|
- 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:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install psycopg2 for the postgresql ansible modules
|
- 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:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue