1
0
Fork 0

tweak longhorn install

This commit is contained in:
Massaki Archambault 2025-02-19 19:18:54 -05:00
parent 1662a525ee
commit 01b4dc2f09
2 changed files with 21 additions and 11 deletions

View File

@ -1,7 +1,7 @@
- name: Restart multipathd
service:
name: multipathd
state: restarted
# - name: Restart multipathd
# service:
# name: multipathd
# state: restarted
- name: reboot
reboot:

View File

@ -2,14 +2,24 @@
apt:
name:
- open-iscsi # required by longhorn
- nfs-common # required for nfs support
- iptables # required for docker-in-docker workload support
- nfs-common # required by longhorn
- 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/
- name: Disable multipath (for longhorn volumes)
copy:
src: multipath.conf
dest: /etc/multipath.conf
notify: Restart multipathd
# - name: Disable multipathd (for longhorn volumes)
# copy:
# src: multipath.conf
# dest: /etc/multipath.conf
# 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'