Skip to content

Commit

Permalink
Fix: perform tasks of the "copy" role with root privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 7, 2023
1 parent df3b155 commit a368e49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/copy/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---

- name: Fetch files from the master
become: true
become_user: root
run_once: true
ansible.builtin.fetch:
src: "{{ item.src }}"
Expand All @@ -15,6 +17,8 @@
tags: fetch_files

- name: Copy files to all servers
become: true
become_user: root
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
Expand Down

0 comments on commit a368e49

Please sign in to comment.