{"id":22964695,"url":"https://github.com/39services/ansible_role_rke2","last_synced_at":"2025-04-02T04:21:59.753Z","repository":{"id":184987931,"uuid":"672801410","full_name":"39services/ansible_role_rke2","owner":"39services","description":"Ansible roll to bootstrap an RKE2 cluster","archived":false,"fork":false,"pushed_at":"2024-06-18T14:56:51.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T18:04:45.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/39services.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-31T07:43:33.000Z","updated_at":"2024-12-03T13:08:14.000Z","dependencies_parsed_at":"2023-07-31T09:15:22.572Z","dependency_job_id":"c87237a7-5a7f-43f8-961c-d6e1a338841d","html_url":"https://github.com/39services/ansible_role_rke2","commit_stats":null,"previous_names":["diademiemi/ansible_role_rke2","x86-39/ansible_role_rke2","39services/ansible_role_rke2"],"tags_count":0,"template":false,"template_full_name":"39services/ansible_role_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fansible_role_rke2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fansible_role_rke2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fansible_role_rke2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fansible_role_rke2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/39services","download_url":"https://codeload.github.com/39services/ansible_role_rke2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246753355,"owners_count":20828134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T20:12:00.775Z","updated_at":"2025-04-02T04:21:59.733Z","avatar_url":"https://github.com/39services.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role RKE2\n=========\n\n[![Molecule Test](https://github.com/diademiemi/ansible_role_rke2/actions/workflows/molecule.yml/badge.svg)](https://github.com/diademiemi/ansible_role_rke2/actions/workflows/molecule.yml)\n\nThis is an Ansible role to install and configure rke2.\n\nInclude more information about rke2 in this section.\n\nRequirements\n------------\nThese platforms are supported:\n- Ubuntu 20.04  \n- Ubuntu 22.04  \n- Debian 11  \n- EL 8 (Tested on Rocky Linux 8)  \n- EL 9 (Tested on Rocky Linux 9)  \n- Fedora 40  \n- openSUSE Leap 15.5\n\n\u003c!--\n- List hardware requirements here  \n--\u003e\n\nRole Variables\n--------------\n\nVariable | Default | Description\n--- | --- | ---\n`rke2_role_name` | `rke2` | Name of role role in collection Rancher\n`rke2_script_url` | `https://get.rke2.io` | URL of the RKE2 setup script\n`rke2_channel` | `v1.24` | RKE2 release channel. v1.24 is the latest supported for Rancher\n`rke2_tls_san` | `[\"{{ ansible_domain }}\"]` | List of additional domains to add to the RKE2 server certificate\n`rke2_type` | `server` | RKE2 type. Options: `[server, agent]`\n`rke2_server_token` | ` ` | RKE2 server token to set. Will be generated at runtime if unset.\n`rke2_auto_cluster` | `true` | Automatically put all nodes in the current play in a single cluster. Use the first hosts as initial server.\n`rke2_server_ip` | ` ` | If this variable is set, nodes will register to this existing server. Must not be set on the initial host.\n`rke2_server_ansible_user` | `{{ ansible_user_id }}` | User to copy the kubeconfig to ~/.kube/config\n\u003c!--\n`variable` | `default` | Variable example\n`long_variable` | See [defaults/main.yml](./defaults/main.yml) | Variable referring to defaults\n`distro_specific_variable` | See [vars/debian.yml](./vars/debian.yml) | Variable referring to distro-specific variables\n--\u003e\n\nDependencies\n------------\n\u003c!-- List dependencies on other roles or criteria --\u003e\nNone\n\nExample Playbook\n----------------\n\n```yaml\n- name: Use diademiemi.rke2 role\n  hosts: \"{{ target | default('rke2') }}\"\n  roles:\n    - role: \"diademiemi.rke2\"\n      tags: ['diademiemi', 'rke2', 'setup']    ```\n\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\n- diademiemi (@diademiemi)\n\nRole Testing\n------------\n\nThis repository comes with Molecule that run in Podman on the supported platforms.\nInstall Molecule by running\n\n```bash\npip3 install -r requirements.txt\n```\n\nRun the tests with\n\n```bash\nmolecule test\n```\n\nThese tests are automatically ran by GitHub Actions on push. If the tests are successful, the role is automatically published to Ansible Galaxy.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F39services%2Fansible_role_rke2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F39services%2Fansible_role_rke2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F39services%2Fansible_role_rke2/lists"}