diff --git a/templates/requirements.txt.j2 b/templates/requirements.txt.j2 index 48b9d14..aaccb93 100644 --- a/templates/requirements.txt.j2 +++ b/templates/requirements.txt.j2 @@ -5,6 +5,12 @@ # https://pip.pypa.io/en/stable/user_guide/#requirements-files # # Tests run on the previous and current (latest) version of Ansible. -ansible>={{ meta.galaxy_info.min_ansible_version }} +ansible-core >= {{ meta.galaxy_info.min_ansible_version }} # Some Jinja2 filters are used that are available in the newer releases. -jinja2>=2.11.2 +jinja2 >= 2.11.2 + +# For testing this role using `molecule` in CI, these requirements are needed. +molecule == 5.* +molecule-plugins[docker] == 23.* +ansible-lint == 6.* +paramiko == 3.* diff --git a/templates/tox.ini.j2 b/templates/tox.ini.j2 index a67eae2..2b7044a 100644 --- a/templates/tox.ini.j2 +++ b/templates/tox.ini.j2 @@ -11,13 +11,10 @@ skipsdist = true [testenv] deps = + -rrequirements.txt ansible5: ansible == 5.* ansible6: ansible == 6.* ansible7: ansible == 7.* - molecule == 5.* - molecule-plugins[docker] == 23.* - ansible-lint == 6.* - paramiko == 3.* commands = molecule test setenv = TOX_ENVNAME={envname}