No description
Find a file
semantic-release-bot dd32737c80 chore(release): 1.6.0 [skip ci]
# [1.6.0](https://github.com/de-it-krachten/ansible-role-kubectl/compare/v1.5.0...v1.6.0) (2026-03-15)

### Bug Fixes

* Update kubectl binary locations ([9c57608](9c57608911))

### Features

* Added support for Fedora 43 ([6f15eec](6f15eec07c))
* Drop support for Fedora 41 ([37cc177](37cc177c74))
* Drop support for openSUSE Leap 15 ([531d660](531d66041b))
* Drop support for SUSE Linux Enterprise 15 ([88b733e](88b733e72d))
2026-03-15 11:38:30 +00:00
.github/workflows Update CI 2026-03-14 19:39:17 +01:00
defaults fix: Update kubectl binary locations 2026-03-11 22:02:08 +01:00
meta Update CI 2026-03-14 19:39:17 +01:00
molecule/default Update CI 2026-03-14 19:39:17 +01:00
tasks fix: Update kubectl binary locations 2026-03-11 22:02:08 +01:00
.ansible-lint Initial commit 2023-04-24 13:04:05 +02:00
.cicd Update supported platforms & CI 2026-03-14 19:39:17 +01:00
.cicd.overwrite Update CI 2026-03-14 19:39:17 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 23:21:21 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:15:59 +01:00
.releaserc.yml Update supported platforms & CI 2026-03-14 19:39:17 +01:00
.roles Initial commit 2023-04-24 13:04:05 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 02:15:59 +01:00
CHANGELOG.md chore(release): 1.6.0 [skip ci] 2026-03-15 11:38:30 +00:00
README.md Update CI 2026-03-14 19:39:17 +01:00

CI

ansible-role-kubectl

Installs kubectl on a variety of platforms

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 8
  • RockyLinux 9
  • RockyLinux 10
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • AlmaLinux 9
  • AlmaLinux 10
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Fedora 42
  • Fedora 43

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Github CLI - API
kubectl_api: https://api.github.com/repos/kubernetes/kubectl

# Github CLI - repo
kubectl_repo: https://github.com/kubernetes/kubectl

# Kubectl
kubectl_base_url: https://dl.k8s.io/release

# Lookup table for architecture
kubectl:
  architecture:
    x86_64: amd64
    i386: i386
    armv6l: arm
    armv7l: arm
    aarch64: arm64
  system:
    Linux: linux
    Darwin: darwin

# Version of the CLI to install
kubectl_version: latest

# Location/ownership/permissions of the binary
kubectl_path: /usr/local/bin/kubectl
kubectl_owner: root
kubectl_group: root
kubectl_mode: '0755'

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'kubectl'
  hosts: all
  become: 'yes'
  tasks:
    - name: Include role 'kubectl'
      ansible.builtin.include_role:
        name: kubectl