refactor(development): use kubectl role instead of custom code
This commit is contained in:
parent
41cb71e364
commit
890c7646fa
1 changed files with 3 additions and 16 deletions
|
@ -157,22 +157,9 @@
|
||||||
cmds:
|
cmds:
|
||||||
- dpkg -i {asset_dirname}/{asset_filename}
|
- dpkg -i {asset_dirname}/{asset_filename}
|
||||||
|
|
||||||
- name: '[custom] install latest kubectl'
|
- name: install kubectl
|
||||||
become: true
|
ansible.builtin.include_role:
|
||||||
block:
|
name: nullified.infrastructure.kubectl
|
||||||
- name: '[kubectl] find latest version available'
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: curl -L -s https://dl.k8s.io/release/stable.txt
|
|
||||||
register: latest_kube_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: '[kubectl] fetch binary'
|
|
||||||
ansible.builtin.get_url:
|
|
||||||
url: "https://dl.k8s.io/release/{{ latest_kube_version.stdout }}/bin/linux/amd64/kubectl"
|
|
||||||
dest: /usr/local/bin/kubectl
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: install helm
|
- name: install helm
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|
Loading…
Add table
Reference in a new issue