Answer the question
In order to leave comments, you need to log in
How does copying files work with ansible?
I am writing a playbook of the initial system setup. To ensure that all users have the same settings, I copy pre-prepared files to /etc/skel
Here is the code:
- name: copy skel
copy: src=templates/skel/ dest=/etc/skel/
Answer the question
In order to leave comments, you need to log in
- name: copy skel
copy:
src: templates/skel/
dest: /etc/skel/
owner: username
group: username
mode: '0755'
become: yes
tags: copy_skel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question