{"id":24030792,"url":"https://github.com/mosher-labs/ansible-node-setup","last_synced_at":"2026-01-16T23:03:10.564Z","repository":{"id":271118346,"uuid":"912440932","full_name":"Mosher-Labs/ansible-node-setup","owner":"Mosher-Labs","description":"🚀 This repo provides Ansible playbooks and roles designed to configure and manage nodes for lightweight Kubernetes clusters using K3s. 🎯","archived":false,"fork":false,"pushed_at":"2026-01-15T14:07:43.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T17:44:08.024Z","etag":null,"topics":["ansible","axes","devops","infrastructure-as-code","mosher-labs","reliability-engineering","viking"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mosher-Labs.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["benniemosher"]}},"created_at":"2025-01-05T15:31:06.000Z","updated_at":"2026-01-15T14:07:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dcffe34-742c-42b4-820f-7e1e8931e125","html_url":"https://github.com/Mosher-Labs/ansible-node-setup","commit_stats":null,"previous_names":["mosher-labs/ansible-node-setup"],"tags_count":15,"template":false,"template_full_name":"Mosher-Labs/basic-ansible-template","purl":"pkg:github/Mosher-Labs/ansible-node-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosher-Labs%2Fansible-node-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosher-Labs%2Fansible-node-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosher-Labs%2Fansible-node-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosher-Labs%2Fansible-node-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mosher-Labs","download_url":"https://codeload.github.com/Mosher-Labs/ansible-node-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosher-Labs%2Fansible-node-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28487098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:54:02.790Z","status":"ssl_error","status_checked_at":"2026-01-16T22:50:10.344Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ansible","axes","devops","infrastructure-as-code","mosher-labs","reliability-engineering","viking"],"created_at":"2025-01-08T17:58:15.517Z","updated_at":"2026-01-16T23:03:10.552Z","avatar_url":"https://github.com/Mosher-Labs.png","language":null,"readme":"# ansible-node-setup\n\n![GitHub branch status](https://img.shields.io/github/checks-status/mosher-labs/ansible-node-setup/main)\n![GitHub Issues](https://img.shields.io/github/issues/mosher-labs/ansible-node-setup)\n![GitHub last commit](https://img.shields.io/github/last-commit/mosher-labs/ansible-node-setup)\n![GitHub repo size](https://img.shields.io/github/repo-size/mosher-labs/ansible-node-setup)\n![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/mosher-labs/ansible-node-setup)\n![GitHub License](https://img.shields.io/github/license/mosher-labs/ansible-node-setup)\n![GitHub Sponsors](https://img.shields.io/github/sponsors/mosher-labs)\n\n## ⚙️  K8s Node Configuration with Ansible 🌐\n\nWelcome to the K3s Kubernetes Node Setup repository! 🚀 This repo\nprovides Ansible playbooks and roles designed to configure and\nmanage nodes for lightweight Kubernetes clusters using K3s. 🎯\n\n🌟 Key Features:\n\n- 📜 Automated node provisioning and configuration for K3s clusters.\n- 🔧 Support for common Kubernetes-ready optimizations and settings.\n- 🖧 Seamless integration with existing Ansible workflows.\n\n✨ Perfect for:\n\n- Setting up development, testing, or production K3s clusters 🚀\n- Managing scalable Kubernetes nodes with ease 🛠️\n- Ensuring consistency and reproducibility across your infrastructure 🌍\n- Clone the repo, run the playbooks, and get your cluster ready in no time! 🤝\n\n## Usage\n\n### 📦 Dependencies\n\n```bash\nmise install pipx\npipx install --incude-deps ansible\npipx ensurepath\n```\n\n### Configure individual node\n\nAfter basic Ubuntu Server install:\n\n```bash\nssh ubuntu-virtualbox\nsudo adduser ansible\nsudo usermod -aG sudo ansible\nsudo su\necho 'ansible ALL=(ALL) NOPASSWD:ALL' \u003e\u003e /etc/sudoers\nexit\nexit\n\n# On host machine\n\n# Copy SSH key to node\nssh-copy-id ansible@ubuntu-virtualbox\n\n# Export the key to be used by Ansible\nop item get \"k3s-node-ansible-ssh-key\" --field \"private key\" \u003e $HOME/.ssh/ansible_key\n```\n\n### Run ansible playbooks\n\n```bash\nansible-playbook -i inventory.ini playbook.yml\n```\n\n### Setup kubeconfig\n\n```bash\nscp -i ~/.ssh/ansible_key ansible@ubuntu-virtualbox:/etc/rancher/k3s/k3s.yaml ~/k3s.yaml\nsed -i '' 's/127.0.0.1/192.168.202.14/g' ~/k3s.yaml\nchmod 600 ~/k3s.yaml\nexport KUBECONFIG=~/k3s.yaml\nkubectl get nodes\nkubectl get deployments --namespace default\nkubectl get pods --namespace default\nkubectl get services --namespace default\n```\n\n## 🔰 Contributing\n\nUpon first clone, install the pre-commit hooks.\n\n```bash\npre-commit install\n```\n\nTo run pre-commit hooks locally, without a git commit.\n\n```bash\npre-commit run -a --all-files\n```\n\nTo update pre-commit hooks, this ideally should be ran before a pull request is merged.\n\n```bash\npre-commit autoupdate\n```\n\n### 📋 TODO\n\n- [ ] Setup and configure molecule tests\n","funding_links":["https://github.com/sponsors/benniemosher"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosher-labs%2Fansible-node-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosher-labs%2Fansible-node-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosher-labs%2Fansible-node-setup/lists"}