parent
3c5d2b9fa9
commit
0d8304e965
@ -1,11 +1,16 @@ |
||||
- name: Add longhorn chart repo |
||||
kubernetes.core.helm_repository: |
||||
name: longhorn |
||||
repo_url: "https://charts.longhorn.io" |
||||
- name: Create directory for manifest storage |
||||
ansible.builtin.file: |
||||
path: "{{ longhorn_working_dir }}" |
||||
state: directory |
||||
mode: '0755' |
||||
|
||||
- name: Deploy latest version of longhorn chart inside longhorn-system namespace with values |
||||
kubernetes.core.helm: |
||||
name: longhorn |
||||
chart_ref: longhorn/longhorn |
||||
release_namespace: longhorn-system |
||||
create_namespace: yes |
||||
- name: download longhorn manifest |
||||
get_url: |
||||
url: "https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml" |
||||
dest: "{{ longhorn_manifest_path }}" |
||||
mode: '0664' |
||||
|
||||
- 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