ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to file: with ansible.builtin.file Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
f3517ab537
commit
62952df107
167 changed files with 380 additions and 381 deletions
|
@ -33,7 +33,7 @@
|
|||
when: home_fedora_res.stat.isdir
|
||||
|
||||
- name: Delete the script from the host
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /usr/local/sbin/fix-home-fedora-ownerships.sh
|
||||
state: absent
|
||||
changed_when: false
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
tasks:
|
||||
- name: Remove keytab
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/etc/openshift_apps/{{item.app}}/{{item.key}}.kt"
|
||||
state: absent
|
||||
loop: "{{keytabs}}"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
tasks:
|
||||
- block:
|
||||
- name: == OCP KVM provisioning == Ensuring we have needed httpd dir
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/var/www/html/rhcos"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
@ -58,7 +58,7 @@
|
|||
- "rhcos-{{ rhcos_version }}-x86_64-metal.x86_64.raw.gz"
|
||||
- "rhcos-{{ rhcos_version }}-x86_64-live-kernel-x86_64"
|
||||
- name: == OCP KVM provisioning == Ensuring symlink for correct version {{ rhcos_version }}
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "/var/www/html/rhcos/rhcos-{{ rhcos_version }}-x86_64-metal.x86_64.raw.gz"
|
||||
dest: "/var/www/html/rhcos/rhcos-metal.raw"
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
tasks:
|
||||
- file: dest=/srv/web/fedoraproject.org/static/ state=directory
|
||||
- ansible.builtin.file: dest=/srv/web/fedoraproject.org/static/ state=directory
|
||||
- copy: src=hotspot.txt dest=/srv/web/fedoraproject.org/static/hotspot.txt
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
- file: dest=/var/cache/httpd/mote/cache.json state=absent
|
||||
- ansible.builtin.file: dest=/var/cache/httpd/mote/cache.json state=absent
|
||||
- service: name="httpd" state=restarted
|
||||
- service: name="mote-updater" state=restarted
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
register: out
|
||||
|
||||
- name: Remove it
|
||||
file: path=/root/drivestatus.py state=absent
|
||||
ansible.builtin.file: path=/root/drivestatus.py state=absent
|
||||
|
||||
- debug: var=out.stdout_lines
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
shell: /bin/rpm --resign {{ rpmdir }}/*.rpm
|
||||
|
||||
- name: Make a directory where we store the rpms afterwards
|
||||
file: path={{ rpmdir }}-old state=directory
|
||||
ansible.builtin.file: path={{ rpmdir }}-old state=directory
|
||||
|
||||
- name: Copy the source rpms to the SRPMS dir of {{ repodir }}
|
||||
copy: src={{ item }} dest={{ repodir }}/SRPMS/
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
- command: createdb -O bodhi2 bodhi2
|
||||
- name: Import the prod db.
|
||||
shell: cat /var/tmp/bodhi2.dump | psql bodhi2
|
||||
- file: path=/var/tmp/bodhi2.dump state=absent
|
||||
- ansible.builtin.file: path=/var/tmp/bodhi2.dump state=absent
|
||||
|
||||
- name: Bring staging services up (OpenShift web services)
|
||||
hosts: os-control01.stg.iad2.fedoraproject.org
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
- name: Mount newly-created empty koji filesystem
|
||||
mount: name=/mnt/fedora_koji src=/dev/GuestVolGroup00/fedora_koji fstype=xfs state=mounted
|
||||
- name: Recreate koji directory structure
|
||||
file: name={{item}} state=directory owner=apache group=apache setype=httpd_sys_rw_content_t
|
||||
ansible.builtin.file: name={{item}} state=directory owner=apache group=apache setype=httpd_sys_rw_content_t
|
||||
with_items:
|
||||
- /mnt/fedora_koji/koji
|
||||
- /mnt/koji/compose
|
||||
|
@ -125,7 +125,7 @@
|
|||
- /mnt/koji/work
|
||||
# TODO recreate directories under /mnt/koji/compose (which ones?) that composer expects to exist
|
||||
- name: Symlink production volume
|
||||
file: src=/mnt/fedora_koji_prod/koji dest=/mnt/koji/vol/prod state=link
|
||||
ansible.builtin.file: src=/mnt/fedora_koji_prod/koji dest=/mnt/koji/vol/prod state=link
|
||||
- name: Restart nfs-server
|
||||
service: name=nfs-server state=started
|
||||
- name: Restart httpd
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
tasks:
|
||||
- name: Nuke the prod db dump that we cached on batcave
|
||||
file: path=/var/tmp/prod-mailman-dump/ state=absent
|
||||
ansible.builtin.file: path=/var/tmp/prod-mailman-dump/ state=absent
|
||||
|
||||
|
||||
- name: Convert the data to staging and bring services back up. This will take a while too.
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
- name: Create drop place for upgrades
|
||||
check_mode: no
|
||||
when: ansible_virtualization_role == "host"
|
||||
file: path=/root/firmware-upgrades state=directory
|
||||
ansible.builtin.file: path=/root/firmware-upgrades state=directory
|
||||
|
||||
- name: Check which updates to copy
|
||||
check_mode: no
|
||||
|
@ -98,7 +98,7 @@
|
|||
|
||||
# Generic stuff continues here
|
||||
- name: Mark updates as done
|
||||
file: path=/root/firmware-upgrades/{{ item.item.1 }}.applied
|
||||
ansible.builtin.file: path=/root/firmware-upgrades/{{ item.item.1 }}.applied
|
||||
state=touch owner=root mode=644
|
||||
when: "'stat' in item and not item.stat.exists"
|
||||
with_items: "{{is_applied_results.results}}"
|
||||
|
@ -106,7 +106,7 @@
|
|||
# We are cleaning up all files we copied, regardless of update result
|
||||
- name: Delete update files
|
||||
check_mode: no
|
||||
file: path=/root/firmware-upgrades/{{ item.item.1 }}
|
||||
ansible.builtin.file: path=/root/firmware-upgrades/{{ item.item.1 }}
|
||||
state=absent
|
||||
when: "'stat' in item and not item.stat.exists"
|
||||
with_items: "{{is_applied_results.results}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue