xoxys.k3s/molecule/rocky9/converge.yml
Robert Kaussow 23c4f370df
All checks were successful
continuous-integration/drone/push Build is passing
fix: fix node label patching
2022-11-18 10:12:48 +01:00

36 lines
1.2 KiB
YAML

---
- name: Converge
hosts: all
vars:
k3s_reset: False
k3s_packages_extra:
- https://github.com/k3s-io/k3s-selinux/releases/download/v1.2.stable.2/k3s-selinux-1.2-2.el8.noarch.rpm
k3s_server_flannel_backend_enabled: False
k3s_server_network_policy_enabled: False
k3s_server_cloud_controller_enabled: True
k3s_server_manifests_templates:
- "calico-installation.yaml.j2"
k3s_server_manifests_urls:
- url: https://raw.githubusercontent.com/projectcalico/calico/v3.24.2/manifests/tigera-operator.yaml
dest: tigera-operator.yaml
# - url: https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/latest/download/ccm.yaml
# dest: hcloud-ccm.yaml
k3s_init_log_enabled: True
k3s_selinux_enabled: True
# k3s_server_resource_creations:
# - kind: Secret
# name: hcloud
# definition:
# metadata:
# namespace: kube-system
# apiVersion: v1
# type: Opaque
# data:
# token: "{{ hcloud_token | b64encode }}"
pre_tasks:
- name: Override host variables
ansible.builtin.set_fact:
k3s_node_ip: "{{ ansible_default_ipv4.address }}"
roles:
- role: xoxys.k3s