Files
homelab/10-sno-hub-cluster/03-openshift-image/move-pxe-assets.yml
2025-03-23 01:56:48 -05:00

16 lines
445 B
YAML

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