diff --git a/README.md b/README.md index 1bb30f9..c17fb67 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ansible Role: k3s +# Ansible Role: k3s (v1.x) Ansible role for installing [Rancher Labs k3s](https://k3s.io/) ("Lightweight Kubernetes") as either a standalone server or cluster. @@ -9,9 +9,10 @@ Kubernetes") as either a standalone server or cluster. The host you're running Ansible from requires the following Python dependencies: + - `ansible >= 2.7 <= 2.9` - `jmespath >= 0.9.0` -This role has been tested on Ansible 2.7.0+ against the following Linux Distributions: +This role has been tested against the following Linux Distributions: - Amazon Linux 2 - Archlinux @@ -27,9 +28,10 @@ This role has been tested on Ansible 2.7.0+ against the following Linux Distribu - Ubuntu 18.04 LTS - Ubuntu 20.04 LTS -## Disclaimer +:warning: The v1 releases of this role only supports `k3s <= v1.19`, for +`k3s >= v1.19` please consider using the v2+ releases of this role. -:warning: May not be suitable for production use! +## Disclaimer Rancher Labs is awesome and has released k3s as v1.0.0, however at the time of creating this role I do not have a k3s cluster in production nor am I unlikely @@ -354,4 +356,4 @@ Example playbook, Highly Available running the latest release: ## Author Information -[Xan Manning](https://xanmanning.co.uk/) +[Xan Manning](https://xan.manning.io/) diff --git a/handlers/main.yml b/handlers/main.yml index f79c517..a0d8db1 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -12,6 +12,8 @@ state: restarted scope: "{{ k3s_systemd_context }}" enabled: true + retries: 3 + delay: 3 become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}" - name: restart docker diff --git a/molecule/default/playbook-docker-altport-wireguard.yml b/molecule/default/playbook-docker-altport-wireguard.yml index a88a3c4..3700ddc 100644 --- a/molecule/default/playbook-docker-altport-wireguard.yml +++ b/molecule/default/playbook-docker-altport-wireguard.yml @@ -6,7 +6,6 @@ molecule_is_test: true k3s_use_docker: true k3s_https_port: 26443 - k3s_flannel_backend: wireguard k3s_cluster_domain: examplecluster.local roles: - role: xanmanning.k3s