Pierre Riteau d3c0ff56a5 CI: Switch to pytest-ansible
The functionality provided by pytest-molecule been merged into the
pytest-ansible plugin. The repository has been archived [1].

Switch to pytest-ansible for the molecule job. We need to disable
pytest-ansible when running testinfra because they define the same
--ansible-inventory option [2].

Make the kayobe-tox-molecule job voting again.

[1] https://github.com/ansible-community/pytest-molecule
[2] https://github.com/pytest-dev/pytest-testinfra/issues/58

Change-Id: I956ed42a4a862a14d1ac9e40c40e0cdf62e36464
2024-12-19 17:39:08 +01:00

26 lines
528 B
YAML

---
dependency:
name: galaxy
options:
requirements-file: molecule/collections.yml
driver:
name: docker
lint: |
yamllint .
platforms:
- name: centos-stream9
image: quay.io/centos/centos:stream9
network_mode: host
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
options:
# Disable pytest-ansible which conflicts with argument --ansible-inventory
# https://github.com/pytest-dev/pytest-testinfra/issues/58
p: "no:pytest-ansible"