https://github.com/39services/ansible_role_k3s
Ansible role to install and configure a K3S cluster
https://github.com/39services/ansible_role_k3s
Last synced: over 1 year ago
JSON representation
Ansible role to install and configure a K3S cluster
- Host: GitHub
- URL: https://github.com/39services/ansible_role_k3s
- Owner: 39services
- License: mit
- Created: 2022-12-06T11:03:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T11:28:40.000Z (about 2 years ago)
- Last Synced: 2025-03-28T18:04:44.993Z (over 1 year ago)
- Language: Jinja
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role K3S
=========
[](https://github.com/diademiemi/ansible_role_k3s/actions/workflows/molecule.yml)
This is an Ansible role to install and configure k3s.
Include more information about k3s in this section.
Requirements
------------
These platforms are supported:
- Ubuntu 20.04
- Ubuntu 22.04
- Debian 11
- Debian 12
- EL 8 (Tested on Rocky Linux 8)
- EL 9 (Tested on Rocky Linux 9)
- Fedora 40
- openSUSE Leap 15.5
- openSUSE MicroOS (Best effort)
Role Variables
--------------
Variable | Default | Description
--- | --- | ---
Dependencies
------------
None
Example Playbook
----------------
```yaml
- name: Use diademiemi.k3s role
hosts: "{{ target | default('k3s') }}"
roles:
- role: "diademiemi.k3s"
tags: ['diademiemi', 'k3s', 'setup']
vars:
k3s_role: master # At least one master is required
```
License
-------
MIT
Author Information
------------------
- diademiemi (@diademiemi)
Role Testing
------------
This repository comes with Molecule that run in Podman on the supported platforms.
Install Molecule by running
```bash
pip3 install -r requirements.txt
```
Run the tests with
```bash
molecule test
```
These tests are automatically ran by GitHub Actions on push. If the tests are successful, the role is automatically published to Ansible Galaxy.