---
# - name: Install tailscale
#   hosts: k3s_cluster
#   roles:
#     - role: artis3n.tailscale.device
#       vars:
#         tailscale_up_skip: true
- name: Prepare host for longhorn
  hosts: k3s_cluster
  tasks:
    - name: Install packages
      ansible.builtin.apt:
        pkg: [open-iscsi, nfs-common, cryptsetup]

- name: Build a cluster
  hosts: k3s_cluster
  vars:
    k3s_become: true
  roles:
    - role: xanmanning.k3s