Fix var reference;Fix task order;Fix block scalar
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:
parent
531ead868a
commit
e7d89006fc
@ -1,5 +1,5 @@
|
|||||||
- name: Generate kube-vip manifest
|
- name: Generate kube-vip manifest
|
||||||
ansible.builtin.command:
|
ansible.builtin.shell:
|
||||||
cmd: >-
|
cmd: >-
|
||||||
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:{{ components.kubevip.version }} vip \
|
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:{{ components.kubevip.version }} vip \
|
||||||
/kube-vip manifest daemonset \
|
/kube-vip manifest daemonset \
|
||||||
@ -16,7 +16,7 @@
|
|||||||
- name: Inject manifests
|
- name: Inject manifests
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/kubevip-manifest.yaml
|
dest: /var/lib/rancher/k3s/server/manifests/kubevip-manifest.yaml
|
||||||
content: >-
|
content: |
|
||||||
{{ lookup('ansible.builtin.file', '/opt/metacluster/kube-vip/rbac.yaml') }}
|
{{ lookup('ansible.builtin.file', '/opt/metacluster/kube-vip/rbac.yaml') }}
|
||||||
---
|
---
|
||||||
{{ kubevip_manifest.stdout }}
|
{{ kubevip_manifest.stdout }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- import_tasks: init.yml
|
- import_tasks: init.yml
|
||||||
- import_tasks: k3s.yml
|
- import_tasks: k3s.yml
|
||||||
- import_tasks: kube-vip.yml
|
|
||||||
- import_tasks: assets.yml
|
- import_tasks: assets.yml
|
||||||
|
- import_tasks: kube-vip.yml
|
||||||
- import_tasks: ingress.yml
|
- import_tasks: ingress.yml
|
||||||
- import_tasks: storage.yml
|
- import_tasks: storage.yml
|
||||||
- import_tasks: certauthority.yml
|
- import_tasks: certauthority.yml
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
dest: /etc/netplan/00-installer-config.yaml
|
dest: /etc/netplan/00-installer-config.yaml
|
||||||
vars:
|
vars:
|
||||||
_template:
|
_template:
|
||||||
macaddress: "{{ ansible_facts.ansible_facts.default_ipv4.macaddress }}"
|
macaddress: "{{ ansible_facts.default_ipv4.macaddress }}"
|
||||||
ipaddress: "{{ vapp['guestinfo.ipaddress'] }}"
|
ipaddress: "{{ vapp['guestinfo.ipaddress'] }}"
|
||||||
prefixlength: "{{ vapp['guestinfo.prefixlength'] }}"
|
prefixlength: "{{ vapp['guestinfo.prefixlength'] }}"
|
||||||
gateway: "{{ vapp['guestinfo.gateway'] }}"
|
gateway: "{{ vapp['guestinfo.gateway'] }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user