33 lines
913 B
YAML
33 lines
913 B
YAML
---
|
|
- name: Prepare Nodes for Longhorn
|
|
hosts: k8s_nodes
|
|
become: yes
|
|
tasks:
|
|
- name: Install prerequisites
|
|
apt:
|
|
name: [open-iscsi, nfs-common, util-linux]
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- name: Enable and start iscsid
|
|
systemd:
|
|
name: iscsid
|
|
enabled: yes
|
|
state: started
|
|
# - name: Deploy Infra and Router via Kustomize
|
|
# become: false
|
|
# shell: "kustomize build --enable-helm . | kubectl apply --server-side --force-conflicts -f -"
|
|
# args:
|
|
# chdir: "/mnt/f/Invixel/k8s-infra-cluster"
|
|
|
|
# - name: Install Cosmo Router via Helm
|
|
# become: false
|
|
# shell: "helm upgrade --install cosmo-router ./cosmo-router -n apps --create-namespace"
|
|
# args:
|
|
# chdir: "/mnt/f/Invixel/k8s-infra-cluster"
|
|
|
|
|
|
|
|
# ansible-playbook -i hosts.ini ansible-prepare-k3s.yml
|
|
# ansible k8s_nodes -i hosts.ini -m ping
|