darkwizard242.crictl

Ansible Role: crictl

This role installs crictl by default on Debian/Ubuntu and EL systems. crictl is a command-line tool for Kubernetes Container Runtime Interface.

Requirements

None.

Role Variables

The available variables are listed below (found in defaults/main.yml):

List of Variables:

crictl_app: crictl
crictl_version: 1.31.1
crictl_os: "{{ ansible_system | lower }}"
crictl_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
crictl_dl_url: https://github.com/kubernetes-sigs/cri-tools/releases/download/v{{ crictl_version }}/{{ crictl_app }}-v{{ crictl_version }}-{{ crictl_os }}-{{ crictl_architecture_map[ansible_architecture] }}.tar.gz
crictl_bin_path: /usr/local/bin
crictl_file_owner: root
crictl_file_group: root

Variable Descriptions:

Variable Description
crictl_app Specifies the app to install (i.e., crictl)
crictl_version Sets the desired version to install. Defaults to: 1.31.1
crictl_os Specifies the type of operating system.
crictl_architecture_map Maps the OS architecture to obtain the correct binary for the system architecture.
crictl_dl_url URL to download the crictl binary from.
crictl_bin_path Path to store the crictl binary, defaults to /usr/local/bin (a common location in the user's PATH).
crictl_file_owner Specifies the owner of the crictl binary file.
crictl_file_group Defines the group for the crictl binary file.

Dependencies

None

Example Playbook

To use the role with default settings (installing crictl) in an Ansible playbook:

- hosts: servers
  roles:
    - darkwizard242.crictl

To customize the role (specifying a different crictl version) in an Ansible playbook:

- hosts: servers
  roles:
    - darkwizard242.crictl
  vars:
    crictl_version: 1.21.0

To customize the role (placing the crictl binary in a different location) in an Ansible playbook:

- hosts: servers
  roles:
    - darkwizard242.crictl
  vars:
    crictl_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Installs/Uninstalls 'crictl', Kubernetes Container Runtime Interface.

Installa
ansible-galaxy install darkwizard242.crictl
Licenza
mit
Download
6.5k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!