ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template

Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2025-01-13 12:24:19 +10:00
parent 3c41882bb0
commit 47c68f478d
149 changed files with 324 additions and 324 deletions

View file

@ -8,7 +8,7 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Copy the sql script to file
template: src=fas-readonly.sql dest=/var/lib/pgsql/fas-readonly.sql
ansible.builtin.template: src=fas-readonly.sql dest=/var/lib/pgsql/fas-readonly.sql
- name: Change permissions for relevant tables in the fas db
ansible.builtin.shell: psql -1 -v ON_ERROR_STOP=1 fas2 </var/lib/pgsql/fas-readonly.sql

View file

@ -8,7 +8,7 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Copy the sql script to file
template: src=rollback.sql dest=/var/lib/pgsql/rollback.sql
ansible.builtin.template: src=rollback.sql dest=/var/lib/pgsql/rollback.sql
- name: Rollback permissions for relevant tables in the fas db
ansible.builtin.shell: psql -1 -v ON_ERROR_STOP=1 fas2 </var/lib/pgsql/rollback.sql

View file

@ -28,7 +28,7 @@
state: directory
mode: "0755"
- name: == OCP KVM provisioning == Importing generated Ignition files
template:
ansible.builtin.template:
src: "/srv/web/infra/bigfiles/openshiftboot/{{ env }}/{{ item }}"
dest: "/var/www/html/rhcos/{{ item }}"
mode: "0755"
@ -37,7 +37,7 @@
- controlplane.ign
- worker.ign
- name: == OCP KVM provisioning == Creating treeinfo for virt-install --location
template:
ansible.builtin.template:
src: "/srv/web/infra/bigfiles/openshiftboot/ocp-treeinfo.j2"
dest: "/var/www/html/rhcos/.treeinfo"
mode: "0644"

View file

@ -19,7 +19,7 @@
pre_tasks:
- name: copy the koji.conf file with the correct variables
template:
ansible.builtin.template:
src: koji.conf.j2
dest: /etc/koji.conf
owner: root

View file

@ -60,7 +60,7 @@
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql
- ansible.builtin.template: src=templates/koji-reset-staging.sql dest=/var/lib/pgsql/koji-reset-staging.sql
tags:
- db-sync-script

View file

@ -34,7 +34,7 @@
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
# - template: src=templates/mailman-reset-staging.sql dest=/var/lib/pgsql/mailman-reset-staging.sql
# - ansible.builtin.template: src=templates/mailman-reset-staging.sql dest=/var/lib/pgsql/mailman-reset-staging.sql
- ansible.builtin.copy:
src: /srv/web/infra/db-dumps/mailman.dump.xz
dest: /var/tmp/mailman.dump.xz
@ -49,7 +49,7 @@
# - name: Fix the database
# ansible.builtin.shell: psql -f /var/lib/pgsql/mailman-reset-staging.sql mailman
# - template: src=templates/hyperkitty-reset-staging.sql dest=/var/lib/pgsql/hyperkitty-reset-staging.sql
# - ansible.builtin.template: src=templates/hyperkitty-reset-staging.sql dest=/var/lib/pgsql/hyperkitty-reset-staging.sql
- ansible.builtin.copy:
src: /srv/web/infra/db-dumps/hyperkitty.dump.xz
dest: /var/tmp/hyperkitty.dump.xz