Add missing kubeconfig path;Reorder cleanup tasks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-11-10 21:27:17 +01:00
parent 6ce1a66d3e
commit 5751e7200c
4 changed files with 15 additions and 16 deletions

View File

@ -1,3 +1,17 @@
- name: Compress tarballs
community.general.archive:
dest: /opt/metacluster/container-images/image-tarballs.tgz
path: /opt/metacluster/container-images/*.tar
format: gz
remove: yes
ignore_errors: yes
- name: Cleanup tempfile
ansible.builtin.file:
path: "{{ kubeconfig.path }}"
state: absent
when: kubeconfig.path is defined
- name: Disable crontab job - name: Disable crontab job
ansible.builtin.cron: ansible.builtin.cron:
name: firstboot name: firstboot

View File

@ -1,13 +0,0 @@
- name: Compress tarballs
community.general.archive:
dest: /opt/metacluster/container-images/image-tarballs.tgz
path: /opt/metacluster/container-images/*.tar
format: gz
remove: yes
ignore_errors: yes
- name: Cleanup tempfile
ansible.builtin.file:
path: "{{ kubeconfig.path }}"
state: absent
when: kubeconfig.path is defined

View File

@ -8,5 +8,3 @@
- import_tasks: secrets.yml - import_tasks: secrets.yml
- import_tasks: git.yml - import_tasks: git.yml
- import_tasks: gitops.yml - import_tasks: gitops.yml
- import_tasks: cleanup.yml

View File

@ -30,5 +30,5 @@
- name: Initialize Cluster API management cluster - name: Initialize Cluster API management cluster
ansible.builtin.shell: ansible.builtin.shell:
cmd: clusterctl init -v5 -i vsphere:{{ components.clusterapi.management.version.infrastructure_vsphere }} --config ./clusterctl.yaml cmd: clusterctl init -v5 -i vsphere:{{ components.clusterapi.management.version.infrastructure_vsphere }} --config ./clusterctl.yaml --kubeconfig {{ kubeconfig.path }}
chdir: /opt/metacluster/manifests chdir: /opt/metacluster/manifests