mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
klal
This commit is contained in:
@@ -221,25 +221,25 @@
|
|||||||
delay: 15
|
delay: 15
|
||||||
when: inventory_hostname.endswith('-vm01.home.lan')
|
when: inventory_hostname.endswith('-vm01.home.lan')
|
||||||
|
|
||||||
- name: Join cluster
|
- name: Join cluster
|
||||||
command: >-
|
command: >-
|
||||||
{{ hostvars['rocky' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }}
|
{{ hostvars['rocky' ~ ansible_distribution_major_version ~ '-vm01.home.lan'].worker_join_cmd }}
|
||||||
args:
|
args:
|
||||||
creates: /etc/kubernetes/kubelet.conf
|
creates: /etc/kubernetes/kubelet.conf
|
||||||
when: not inventory_hostname.endswith('-vm01.home.lan')
|
when: not inventory_hostname.endswith('-vm01.home.lan')
|
||||||
|
|
||||||
- name: get repository
|
- name: get repository
|
||||||
git:
|
git:
|
||||||
repo: 'https://github.com/ahmetb/kubectx'
|
repo: 'https://github.com/ahmetb/kubectx'
|
||||||
dest: /opt/kubectx
|
dest: /opt/kubectx
|
||||||
when: inventory_hostname.endswith('-vm01.home.lan')
|
when: inventory_hostname.endswith('-vm01.home.lan')
|
||||||
|
|
||||||
- name: Create symbolic links for kubectx and kubens
|
- name: Create symbolic links for kubectx and kubens
|
||||||
file:
|
file:
|
||||||
src: /opt/kubectx/{{ item }}
|
src: /opt/kubectx/{{ item }}
|
||||||
dest: /usr/local/bin/{{ item }}
|
dest: /usr/local/bin/{{ item }}
|
||||||
state: link
|
state: link
|
||||||
loop:
|
loop:
|
||||||
- kubectx
|
- kubectx
|
||||||
- kubens
|
- kubens
|
||||||
when: inventory_hostname.endswith('-vm01.home.lan')
|
when: inventory_hostname.endswith('-vm01.home.lan')
|
||||||
Reference in New Issue
Block a user