
While having a native Zuul job for testing is really nice, but it puts some imitations, like being unable to use external collections which a role might depend on. In order to overcome these limitations, molecule test job was added, which does exactly same set of actions, except vlan configuration. We also switch ansible-lint job to track molecule playbook. Change-Id: I219cc1c06c49a6710edfd6104580cdc01b768ab0
21 lines
449 B
YAML
21 lines
449 B
YAML
---
|
|
|
|
- name: Ensure packages are present
|
|
hosts: all
|
|
vars:
|
|
iproute_package_name:
|
|
redhat: iproute
|
|
debian: iproute2
|
|
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] }}"
|
|
|
|
- name: Clear gathered facts
|
|
meta: clear_facts
|