ansible-role-frrouting/molecule/default/prepare.yml
Dmitriy Rabotyagov 2a375f9f81 Add tests of more modern distros
Buster goes EOL in June 2024, so it's good time to add testing of more
distros, including latest Debian 12 and Ubuntu 22.04 as latest LTS at
the moment.

Change-Id: I62dafeef2e2483631cabb10e8f2c289dfb726bea
2024-04-23 10:09:24 +02:00

25 lines
599 B
YAML

---
- name: Ensure packages are present
hosts: all
vars:
iproute_package_name:
redhat: iproute
debian: iproute2
iputils_package_name:
redhat: iputils
debian: iputils-ping
tasks:
- name: Install required packages
package:
name: "{{ item }}"
state: present
update_cache: true
with_items:
- ca-certificates
- "{{ iproute_package_name[ansible_facts['os_family'] | lower] }}"
- "{{ iputils_package_name[ansible_facts['os_family'] | lower] }}"
- name: Clear gathered facts
meta: clear_facts