Test dynamic disk;Disable containerimages temporarily
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -40,25 +40,25 @@
|
||||
mode: 0600
|
||||
no_log: true
|
||||
|
||||
- block:
|
||||
#- block:
|
||||
|
||||
- name: Extract container images
|
||||
ansible.builtin.unarchive:
|
||||
src: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
dest: /opt/metacluster/container-images
|
||||
list_files: yes
|
||||
register: imagetarballs
|
||||
# - name: Extract container images
|
||||
# ansible.builtin.unarchive:
|
||||
# src: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
# dest: /opt/metacluster/container-images
|
||||
# list_files: yes
|
||||
# register: imagetarballs
|
||||
|
||||
- name: Import container images
|
||||
ansible.builtin.command:
|
||||
cmd: k3s ctr image import {{ item }}
|
||||
chdir: /opt/metacluster/container-images
|
||||
loop: "{{ imagetarballs.files }}"
|
||||
# - name: Import container images
|
||||
# ansible.builtin.command:
|
||||
# cmd: k3s ctr image import {{ item }}
|
||||
# chdir: /opt/metacluster/container-images
|
||||
# loop: "{{ imagetarballs.files }}"
|
||||
|
||||
- name: Delete redundant files
|
||||
ansible.builtin.file:
|
||||
path: /opt/metacluster/container-images
|
||||
state: absent
|
||||
# - name: Delete redundant files
|
||||
# ansible.builtin.file:
|
||||
# path: /opt/metacluster/container-images
|
||||
# state: absent
|
||||
|
||||
- name: Install longhorn chart
|
||||
kubernetes.core.helm:
|
||||
|
@ -30,15 +30,15 @@
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Pull and store containerimages
|
||||
ansible.builtin.command:
|
||||
cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||
chdir: /opt/metacluster/container-images
|
||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
||||
#- name: Pull and store containerimages
|
||||
# ansible.builtin.command:
|
||||
# cmd: skopeo copy docker://{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||
# chdir: /opt/metacluster/container-images
|
||||
# loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
||||
|
||||
- name: Compress tarballs
|
||||
community.general.archive:
|
||||
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
path: /opt/metacluster/container-images/*
|
||||
format: gz
|
||||
remove: yes
|
||||
#- name: Compress tarballs
|
||||
# community.general.archive:
|
||||
# dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||
# path: /opt/metacluster/container-images/*
|
||||
# format: gz
|
||||
# remove: yes
|
||||
|
Reference in New Issue
Block a user