This commit is contained in:
parent
59d1730ca5
commit
f6993c2052
@ -7,4 +7,5 @@
|
|||||||
- vapp
|
- vapp
|
||||||
- network
|
- network
|
||||||
- users
|
- users
|
||||||
|
- metacluster
|
||||||
- cleanup
|
- cleanup
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
- name: Install K3s
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: ./install.sh
|
||||||
|
chdir: /opt/metacluster/xxx
|
||||||
|
environment:
|
||||||
|
INSTALL_K3S_SKIP_DOWNLOAD: 'true'
|
||||||
|
INSTALL_K3S_EXEC: 'server --cluster-init'
|
||||||
|
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
- name: Parse helm charts for container images
|
- name: Parse helm charts for container images
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: "{{ item.value.parse_cmd }}" /opt/metacluster/helm-charts/{{ item.key }}/values.yaml"
|
cmd: "{{ item.value.parse_cmd }} /opt/metacluster/helm-charts/{{ item.key }}/values.yaml"
|
||||||
register: containerimages
|
register: containerimages
|
||||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||||
# loop_control:
|
# loop_control:
|
||||||
@ -42,3 +42,10 @@
|
|||||||
# cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
# cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||||
# chdir: /opt/metacluster/container-images
|
# chdir: /opt/metacluster/container-images
|
||||||
# loop: ...
|
# loop: ...
|
||||||
|
|
||||||
|
# - name: Compress tarballs
|
||||||
|
# community.general.archive:
|
||||||
|
# dest: /opt/metacluster/container-images/{{ item | regex_findall('[^/:]+'))[-2] }}.tar.gz
|
||||||
|
# path: /opt/metacluster/container-images/{{ item | regex_findall('[^/:]+'))[-2] }}.tar
|
||||||
|
# remove: yes
|
||||||
|
# loop: ...
|
||||||
|
Loading…
Reference in New Issue
Block a user