parent
3c5d2b9fa9
commit
0d8304e965
@ -1,11 +1,16 @@ |
|||||||
- name: Add longhorn chart repo |
- name: Create directory for manifest storage |
||||||
kubernetes.core.helm_repository: |
ansible.builtin.file: |
||||||
name: longhorn |
path: "{{ longhorn_working_dir }}" |
||||||
repo_url: "https://charts.longhorn.io" |
state: directory |
||||||
|
mode: '0755' |
||||||
|
|
||||||
- name: Deploy latest version of longhorn chart inside longhorn-system namespace with values |
- name: download longhorn manifest |
||||||
kubernetes.core.helm: |
get_url: |
||||||
name: longhorn |
url: "https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml" |
||||||
chart_ref: longhorn/longhorn |
dest: "{{ longhorn_manifest_path }}" |
||||||
release_namespace: longhorn-system |
mode: '0664' |
||||||
create_namespace: yes |
|
||||||
|
- name: apply longhorn manifest |
||||||
|
kubernetes.core.k8s: |
||||||
|
apply: yes |
||||||
|
src: "{{ longhorn_manifest_path }}" |
||||||
|
|||||||
@ -0,0 +1,2 @@ |
|||||||
|
longhorn_working_dir: ~/.ansible/k3s/longhorn |
||||||
|
longhorn_manifest_path: "{{ longhorn_working_dir }}/longhorn.yml" |
||||||
Loading…
Reference in new issue