Merge pull request #635 from pieterv-icloud-com/ansible-symlinks

Ansible create symlinks for kubectl and crictl
This commit is contained in:
Erik Wilson 2019-07-17 14:21:01 -07:00 committed by GitHub
commit 850745c718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,3 +62,15 @@
path: /home/{{ ansible_user }}/.kube/config path: /home/{{ ansible_user }}/.kube/config
regexp: 'https://localhost:6443' regexp: 'https://localhost:6443'
replace: 'https://{{master_ip}}:6443' replace: 'https://{{master_ip}}:6443'
- name: Create kubectl symlink
file:
src: /usr/local/bin/k3s
dest: /usr/local/bin/kubectl
state: link
- name: Create crictl symlink
file:
src: /usr/local/bin/k3s
dest: /usr/local/bin/crictl
state: link