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
|
@ -59,7 +59,7 @@
|
|||
- additional_known_hosts_cleanup[inventory_hostname] is defined
|
||||
|
||||
- name: Remove old signed certificates
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
loop: "{{ found_ssh_certs.files }}"
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
# note - kinda should be a handler - but handlers need args
|
||||
- name: Restorecon
|
||||
file: path=/root/.ssh setype=ssh_home_t recurse=yes
|
||||
ansible.builtin.file: path=/root/.ssh setype=ssh_home_t recurse=yes
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
- swap
|
||||
|
||||
- name: On BTRFS we need NoCOW
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ swap_file_path }}"
|
||||
attr: +C
|
||||
when:
|
||||
|
@ -31,7 +31,7 @@
|
|||
- swap
|
||||
|
||||
- name: Change swap file permissions
|
||||
file: path="{{ swap_file_path }}"
|
||||
ansible.builtin.file: path="{{ swap_file_path }}"
|
||||
owner=root
|
||||
group=root
|
||||
mode=0600
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
- name: Ensure no old facts exist
|
||||
delegate_to: localhost
|
||||
file: path=/root/.ansible_facts_cache/{{ inventory_hostname }} state=absent
|
||||
ansible.builtin.file: path=/root/.ansible_facts_cache/{{ inventory_hostname }} state=absent
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: Ensure the lv for the guest is made
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
- yumrepos
|
||||
|
||||
- name: Make sure older infrastructure tags repos no longer exist
|
||||
file: path="/etc/yum.repos.d/{{item}}" state=absent
|
||||
ansible.builtin.file: path="/etc/yum.repos.d/{{item}}" state=absent
|
||||
with_items:
|
||||
- fedora-modular.repo
|
||||
- fedora-updates-modular.repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue