- Debian: 10 through latest
- RHEL: 9 through latest
- Ubuntu: Use the Debian-family play
- name: Install C toolchain on Debian family
hosts: c_debian
become: true
tasks:
- name: Install C development packages
ansible.builtin.apt:
update_cache: true
name:
- build-essential
- gcc
- gdb
- make
- pkg-config
state: present
- name: Install C toolchain on RHEL family
hosts: c_rhel
become: true
tasks:
- name: Install C development packages
ansible.builtin.dnf:
name:
- gcc
- gcc-c++
- gdb
- make
- pkgconf-pkg-config
state: present
- Add Ubuntu hosts to
c_debian.