Skip to content

Commit

Permalink
adding hauler store
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 14, 2024
1 parent c6a419b commit 1001836
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion roles/install_rke2_controller/tasks/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,25 @@
PATH=$PATH:{{ rke2_data_dir }}/bin
marker: "# {mark} ANSIBLE setup Kubeconfig and RKE2"

# Install helm / k9s
# Install helm / k9s
- name: Download helm bin to
ansible.builtin.unarchive:
src: "http://{{ hauler_server }}:8080/helm.tar.gz"
dest: "/usr/local/bin/helm"
owner: "{{ admin_user }}"
group: "{{ admin_user }}"
mode: '0750'
remote_src: true
validate_certs: false
extra_opts: ['--strip-components=1']

- name: Download k9s bin into /usr/local/bin
ansible.builtin.unarchive:
src: "http://{{ hauler_server }}:8080/k9s.tar.gz"
dest: "/usr/local/bin/k9s"
owner: "{{ admin_user }}"
group: "{{ admin_user }}"
mode: '0750'
remote_src: true
validate_certs: false
extra_opts: ['--strip-components=1']
2 changes: 1 addition & 1 deletion roles/install_rke2_controller/tasks/localhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

rescue:
- name: Add to kubecm
ansible.builtin.command: "kubecm add -c -f ~/.kube/{{ inventory_hostname }}.yaml"
ansible.builtin.command: "kubecm add -c --context-name {{ inventory_hostname }} -f ~/.kube/{{ inventory_hostname }}.yaml"
changed_when: false

- name: Switch to default
Expand Down

0 comments on commit 1001836

Please sign in to comment.