fix: Create folderstructure after cloning git repository
This commit is contained in:
parent
616f8b9a53
commit
ac5d3e3668
@ -16,8 +16,6 @@
|
|||||||
- /opt/metacluster/helm-charts
|
- /opt/metacluster/helm-charts
|
||||||
- /opt/metacluster/k3s
|
- /opt/metacluster/k3s
|
||||||
- /opt/metacluster/kube-vip
|
- /opt/metacluster/kube-vip
|
||||||
- /opt/workloadcluster/git-repositories/gitops/charts
|
|
||||||
- /opt/workloadcluster/git-repositories/gitops/values
|
|
||||||
- /opt/workloadcluster/helm-charts
|
- /opt/workloadcluster/helm-charts
|
||||||
- /opt/workloadcluster/node-templates
|
- /opt/workloadcluster/node-templates
|
||||||
- /var/lib/rancher/k3s/agent/images
|
- /var/lib/rancher/k3s/agent/images
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
dest: /opt/workloadcluster/git-repositories/gitops
|
dest: /opt/workloadcluster/git-repositories/gitops
|
||||||
version: main
|
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
|
- name: Create hard-links to populate new git-repository
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: >-
|
cmd: >-
|
||||||
|
Loading…
Reference in New Issue
Block a user