tweak longhorn install
This commit is contained in:
parent
1662a525ee
commit
01b4dc2f09
|
@ -1,7 +1,7 @@
|
||||||
- name: Restart multipathd
|
# - name: Restart multipathd
|
||||||
service:
|
# service:
|
||||||
name: multipathd
|
# name: multipathd
|
||||||
state: restarted
|
# state: restarted
|
||||||
|
|
||||||
- name: reboot
|
- name: reboot
|
||||||
reboot:
|
reboot:
|
|
@ -2,14 +2,24 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- open-iscsi # required by longhorn
|
- open-iscsi # required by longhorn
|
||||||
- nfs-common # required for nfs support
|
- nfs-common # required by longhorn
|
||||||
- iptables # required for docker-in-docker workload support
|
- nfs-client # required by longhorn
|
||||||
|
- cryptsetup # required by longhorn
|
||||||
|
- dmsetup # required by longhorn
|
||||||
|
- iptables # required for docker-in-docker workload support
|
||||||
|
|
||||||
# https://longhorn.io/kb/troubleshooting-volume-with-multipath/
|
# https://longhorn.io/kb/troubleshooting-volume-with-multipath/
|
||||||
- name: Disable multipath (for longhorn volumes)
|
# - name: Disable multipathd (for longhorn volumes)
|
||||||
copy:
|
# copy:
|
||||||
src: multipath.conf
|
# src: multipath.conf
|
||||||
dest: /etc/multipath.conf
|
# dest: /etc/multipath.conf
|
||||||
notify: Restart multipathd
|
# notify: Restart multipathd
|
||||||
|
|
||||||
|
- name: Disable multipathd (for longhorn volumes)
|
||||||
|
systemd:
|
||||||
|
name: multipathd
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
ignore_errors: true # a node may not have multipathd installed
|
||||||
|
|
||||||
- include_tasks: '{{ platform }}.yml'
|
- include_tasks: '{{ platform }}.yml'
|
||||||
|
|
Loading…
Reference in New Issue