- name: Copy local files directory to remote /tmp/pki
hosts: all
become: true
tasks:
- name: Ensure destination directory exists
ansible.builtin.file:
path: /tmp/pki
state: directory
mode: '0755'
- name: Copy contents of local files/ to remote /tmp/pki/
ansible.builtin.copy:
src: files/
dest: /tmp/pki/
mode: preserve
Back to list