Enable gather facts; Fix typo and conditional;Add missing manifests;Initialize cluster API
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-09 16:43:49 +01:00
parent 838c7b6361
commit b47dda7a50
4 changed files with 17 additions and 8 deletions

View File

@ -1,7 +1,7 @@
---
- hosts: 127.0.0.1
connection: local
gather_facts: false
gather_facts: true
vars_files:
- metacluster.yml
# become: true

View File

@ -27,3 +27,8 @@
publickey: "{{ vapp['guestinfo.rootsshkey'] }}"
version: "{{ components.clusterapi.workload.version.k8s }}"
vip: "{{ vapp['workloadcluster.vip'] }}"
- name: Initialize Cluster API management cluster
ansible.builtin.shell:
cmd: clusterctl init -v5 -i vsphere:{{ components.clusterapi.management.version.infrastructure_vsphere }} --config ./clusterctl.yaml
chdir: /opt/metacluster/manifests

View File

@ -42,7 +42,8 @@
folder: "{{ vcenter_info.folder }}"
name: "{{ item.instance.hw_name }}"
state: present
snapshot_name: "{{ ansible_date_time..iso8601_basic_short }}-base"
snapshot_name: "{{ ansible_date_time.iso8601_basic_short }}-base"
when: ova_deploy.results[index] is not skipped
loop: "{{ ova_deploy.results }}"
loop_control:
index_var: index