- 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

[file-name 000358_2026-04-06_14-23-45.txt]