ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
62952df107
commit
6a3816dfdc
217 changed files with 790 additions and 769 deletions
|
@ -3,7 +3,7 @@
|
|||
# Setup postgresql server.
|
||||
#
|
||||
- name: On rhel8 hosts enable the postgresql 12 module.
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/dnf/modules.d/postgresql.module
|
||||
content: |
|
||||
[postgresql]
|
||||
|
@ -14,7 +14,7 @@
|
|||
when: ansible_distribution_major_version|int == 8
|
||||
|
||||
- name: On db-koji01 and db-riscv-koji01 and db01.stg and db-fas01 and db01 and db-openqa01 enable the postgresql 15 module.
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/dnf/modules.d/postgresql.module
|
||||
content: |
|
||||
[postgresql]
|
||||
|
@ -92,7 +92,7 @@
|
|||
- postgresql
|
||||
|
||||
- name: Add our postgres config file.
|
||||
copy: >
|
||||
ansible.builtin.copy: >
|
||||
src={{ item }}
|
||||
dest=/var/lib/pgsql/data/{{ item }}
|
||||
owner=postgres
|
||||
|
@ -137,31 +137,31 @@
|
|||
- postgresql
|
||||
|
||||
- name: Copy over backup scriplet
|
||||
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
||||
ansible.builtin.copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
||||
when: not inventory_hostname.startswith(('db-koji01.iad2','db-datanommer'))
|
||||
tags:
|
||||
- postgresql
|
||||
|
||||
- name: Copy over backup scriplet
|
||||
copy: src=backup-database.db-koji01 dest=/usr/local/bin/backup-database mode=0755
|
||||
ansible.builtin.copy: src=backup-database.db-koji01 dest=/usr/local/bin/backup-database mode=0755
|
||||
when: inventory_hostname.startswith('db-koji01.iad2')
|
||||
tags:
|
||||
- postgresql
|
||||
|
||||
- name: Copy over backup scriplet
|
||||
copy: src=backup-database.db-datanommer02 dest=/usr/local/bin/backup-database mode=0755
|
||||
ansible.builtin.copy: src=backup-database.db-datanommer02 dest=/usr/local/bin/backup-database mode=0755
|
||||
when: inventory_hostname.startswith('db-datanommer02.iad2')
|
||||
tags:
|
||||
- postgresql
|
||||
|
||||
- name: Copy over anitya public backup scriplet
|
||||
copy: src=backup-database.anitya dest=/usr/local/bin/backup-database.anitya mode=0755
|
||||
ansible.builtin.copy: src=backup-database.anitya dest=/usr/local/bin/backup-database.anitya mode=0755
|
||||
tags:
|
||||
- postgresql
|
||||
when: inventory_hostname.startswith('db01.phx2') or inventory_hostname.startswith('db01.iad2')
|
||||
|
||||
- name: Copy over anitya public backup cron
|
||||
copy: src=cron-backup-anitya-public dest=/etc/cron.d/cron-backup-anitya-public mode=0644
|
||||
ansible.builtin.copy: src=cron-backup-anitya-public dest=/etc/cron.d/cron-backup-anitya-public mode=0644
|
||||
tags:
|
||||
- postgresql
|
||||
when: inventory_hostname.startswith('db01.iad2')
|
||||
|
@ -178,7 +178,7 @@
|
|||
- postgresql
|
||||
|
||||
- name: Set up datanommer/datagrepper SAR script
|
||||
copy: >
|
||||
ansible.builtin.copy: >
|
||||
src=datagrepper_sar.py
|
||||
dest=/usr/local/bin/datagrepper_sar.py mode=0700
|
||||
when: inventory_hostname.startswith('db-datanommer01')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue