{"id":15878880,"url":"https://github.com/darkwizard242/ansible-role-kubens","last_synced_at":"2026-05-07T06:31:52.212Z","repository":{"id":44545333,"uuid":"443897605","full_name":"darkwizard242/ansible-role-kubens","owner":"darkwizard242","description":"Ansible role for 'kubens'. Available on Ansible Galaxy. ","archived":false,"fork":false,"pushed_at":"2026-03-24T18:39:37.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-25T23:53:44.123Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","kubens","kubernetes","kubernetes-namespaces"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/kubens","language":"Python","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/darkwizard242.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":"2022-01-03T00:05:48.000Z","updated_at":"2026-03-24T18:39:21.000Z","dependencies_parsed_at":"2024-04-27T04:23:45.408Z","dependency_job_id":"d5ceb79f-7f8f-48c3-9597-242265e6c81b","html_url":"https://github.com/darkwizard242/ansible-role-kubens","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/darkwizard242/ansible-role-kubens","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-kubens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-kubens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-kubens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-kubens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-kubens/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-kubens/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32725965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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","ansible-galaxy","ansible-role","kubens","kubernetes","kubernetes-namespaces"],"created_at":"2024-10-06T02:42:12.575Z","updated_at":"2026-05-07T06:31:52.206Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-kubens/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-kubens/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-kubens/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-kubens/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/kubens) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-kubens\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-kubens) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-kubens\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-kubens) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-kubens\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-kubens) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-kubens?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-kubens?color=orange\u0026style=flat-square)\n\n# Ansible Role: kubens\n\nRole to install (_by default_) [kubens](https://github.com/ahmetb/kubectx) on **Debian/Ubuntu** and **EL** systems. **kubens** is a tool to switch between Kubernetes namespaces easily.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables list:\n\n```yaml\nkubens_app: kubens\nkubens_version: 0.11.0\nkubens_os: \"{{ ansible_system | lower }}\"\nkubens_architecture_map:\n  amd64: x86_64\n  arm: arm64\n  x86_64: x86_64\n  armv6l: armv6\n  armv7l: armv7\n  aarch64: arm64\n  32-bit: \"386\"\n  64-bit: x86_64\nkubens_dl_url: https://github.com/ahmetb/kubectx/releases/download/v{{ kubens_version }}/{{ kubens_app }}_v{{ kubens_version }}_{{ kubens_os }}_{{ kubens_architecture_map[ansible_architecture] }}.tar.gz\nkubens_bin_path: /usr/local/bin\nkubens_file_owner: root\nkubens_file_group: root\nkubens_file_mode: '0755'\n```\n\n### Variables table:\n\nVariable                | Description\n----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------\nkubens_app              | Defines the app to install i.e. **kubens**\nkubens_version          | Defined to dynamically fetch the desired version to install. Defaults to: **0.11.0**\nkubens_osarch           | Used to specify OS type.\nkubens_architecture_map | Used to specify OS architecture type.\nkubens_dl_url           | Defines URL to download the kubens binary from.\nkubens_bin_path         | Defined to dynamically set the appropriate path to store kubens binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**\nkubens_file_owner       | Owner for the binary file of kubens.\nkubens_file_group       | Group for the binary file of kubens.\nkubens_file_mode        | Mode for the binary file of kubens.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **kubens**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.kubens\n```\n\nFor customizing behavior of role (i.e. specifying the desired **kubens** version) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.kubens\n  vars:\n    kubens_version: 0.9.3\n```\n\nFor customizing behavior of role (i.e. placing binary of **kubens** package in different location) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.kubens\n  vars:\n    kubens_bin_path: /bin/\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-kubens/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-kubens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-kubens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-kubens/lists"}