Files
openstack-ansible-haproxy_s…/tests/prepare.yml
Dmitriy Rabotyagov 711caf62e4 Add molecule testing to the role
This adopts old functional tests to be launched with molecule.
Patch does not intend to extend or refactor set of existing tests,
but to provide a baseline to iterate on and ability to improve coverage
with important usecases.

Change-Id: Ia93b5adb313d5b930086ce90dafe6a63da092aba
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025-08-08 17:24:09 +00:00

15 lines
447 B
YAML

---
- name: Prepare environment for testing
hosts: service_hosts
vars:
procps_package_name:
redhat: procps-ng
debian: procps
tasks:
- name: Install required packages
ansible.builtin.package:
name:
- python3-cryptography
- "{{ procps_package_name[ansible_facts['os_family'] | lower] }}"
update_cache: "{{ (ansible_facts['os_family'] | lower == 'debian') | ternary(true, omit) }}"