--- - name: Create a directory if it does not exist ansible.builtin.file: path: "{{ matchbox_assets }}/{{ hub_cluster_name }}" state: directory mode: '0755' become: true - name: Copy file with owner and permissions ansible.builtin.copy: src: 03-matchbox/boot-artifacts/ dest: "{{ matchbox_assets }}/{{ hub_cluster_name }}/" owner: matchbox group: matchbox become: true