fix: Create folderstructure after cloning git repository

This commit is contained in:
Danny Bessems 2023-08-24 09:47:58 +02:00
parent 616f8b9a53
commit ac5d3e3668
2 changed files with 8 additions and 2 deletions

View File

@ -16,8 +16,6 @@
- /opt/metacluster/helm-charts
- /opt/metacluster/k3s
- /opt/metacluster/kube-vip
- /opt/workloadcluster/git-repositories/gitops/charts
- /opt/workloadcluster/git-repositories/gitops/values
- /opt/workloadcluster/helm-charts
- /opt/workloadcluster/node-templates
- /var/lib/rancher/k3s/agent/images

View File

@ -11,6 +11,14 @@
dest: /opt/workloadcluster/git-repositories/gitops
version: main
- name: Create folder structure within new git-repository
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/workloadcluster/git-repositories/gitops/charts
- /opt/workloadcluster/git-repositories/gitops/values
- name: Create hard-links to populate new git-repository
ansible.builtin.shell:
cmd: >-