switch fetch to ansible.builtin.copy

This commit is contained in:
2025-07-23 12:11:59 -04:00
parent 5a00c749c1
commit 9e365a1b9f
+5 -2
View File
@@ -4,9 +4,12 @@
tasks: tasks:
# Copy remote file (host.example.com:/tmp/somefile) into # Copy remote file (host.example.com:/tmp/somefile) into
# /tmp/fetched/host.example.com/tmp/somefile on local machine # /tmp/fetched/host.example.com/tmp/somefile on local machine
- fetch: - ansible.builtin.copy:
src: ./files/openitcockpit-agent_3.1.1_amd64.deb src: ./files/openitcockpit-agent_3.1.1_amd64.deb
dest: /tmp/openitcockpit-agent_3.1.1_amd64.deb dest: /tmp/openitcockpit-agent_3.1.1_amd64.deb
owner: root
group: root
mode: '0644'
- name: change working directory - name: change working directory
ansible.builtin.shell: ansible.builtin.shell: