38 lines
936 B
Django/Jinja
38 lines
936 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
[tox]
|
|
minversion = 4.2.4
|
|
{% if tox_ansible_versions is defined %}
|
|
envlist = py3-ansible{% raw %}{{% endraw %}{% for version in tox_ansible_versions %}{{ version }}{% if not loop.last %},{% endif %}{% endfor %}{% raw %}}{% endraw %}
|
|
{% else %}
|
|
# Ansible 7 is disabled, causing issues with Fedora:
|
|
# https://github.com/ansible/ansible/issues/81199#event-9773321055
|
|
# envlist = py3-ansible{7,8,9}
|
|
envlist = py3-ansible{8,9}
|
|
{% endif %}
|
|
|
|
skipsdist = true
|
|
|
|
[testenv]
|
|
deps =
|
|
-rrequirements.txt
|
|
ansible7: ansible == 7.*
|
|
ansible8: ansible == 8.*
|
|
ansible9: ansible == 9.*
|
|
commands = molecule test
|
|
setenv =
|
|
TOX_ENVNAME={envname}
|
|
PY_COLORS=1
|
|
ANSIBLE_FORCE_COLOR=1
|
|
ANSIBLE_ROLES_PATH=../
|
|
|
|
passenv =
|
|
namespace
|
|
image
|
|
tag
|
|
DOCKER_HOST
|
|
{% if github_variables_mapping is defined %}
|
|
{% for item in github_variables_mapping %}
|
|
{{ item.variable }}
|
|
{% endfor %}
|
|
{% endif %}
|