Skip to content

rgsystemes/ansible-role-librdkafka

Repository files navigation

librdkafka

Build

Installs edenhill/librdkafka from sources on Debian/Ubuntu.

Tested with :

  • Debian 11.x ✔️
  • Ubuntu 22.04.x ✔️

Role Variables

---
librdkafka_cleanup_if_exists: false # Turn to true if you wish to overwrite existing assets (weither it comes from source or apt). Usefull for upgrade/downgrade.
librdkafka_version: v1.9.2 # the release number to get from GitHub. See: https://github.com/edenhill/librdkafka/releases 
# librdkafka_checksum: # specify matching SHA256's checksum if you want to
# librdkafka_build_opts: # See: https://github.com/edenhill/librdkafka#building 

Example requirements file

---
- src: https://github.com/rgsystemes/ansible-role-librdkafka
  name: rgsystem.librdkafka
  version: master

Example playbook

---
- hosts: servers
  become: yes
  gather_facts: yes

  roles:
    - name: rgsystem.librdkafka
      vars:
        librdkafka_cleanup_if_exists: true
        librdkafka_version: v1.4.0
        librdkafka_checksum: sha256:ae27ea3f3d0d32d29004e7f709efbba2666c5383a107cc45b3a1949486b2eb84
        librdkafka_build_opts: --install-deps

Dependencies

None

License

MIT / BSD