mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -172,10 +172,13 @@
|
|||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||||
|
|
||||||
- name: Install Flannel CNI
|
- name: Install Flannel CNI
|
||||||
become: false
|
ansible.builtin.command:
|
||||||
command: kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
|
cmd: kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
|
||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
environment:
|
||||||
ignore_errors: true
|
KUBECONFIG: /etc/kubernetes/admin.conf
|
||||||
|
when: inventory_hostname == "ubuntu24-vm01.home.lan"
|
||||||
|
register: flannel_result
|
||||||
|
changed_when: "'created' in flannel_result.stdout or 'configured' in flannel_result.stdout"
|
||||||
|
|
||||||
- name: Get join command
|
- name: Get join command
|
||||||
command: sudo kubeadm token create --print-join-command
|
command: sudo kubeadm token create --print-join-command
|
||||||
|
|||||||
Reference in New Issue
Block a user