remove ansible 2.7 support from molecule

ansible 2.7 has been deprecated
https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html
We need to remove ansible 2.7 from molecule testing in order to
* make room for ansible 2.10 testing
* move to molecule v3

ansible 2.8 and later support platform-python on el8 and later
so we don't have to handle that case explicitly by setting
ansible_python_interpreter for centos8 in molecule.yml

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2021-01-19 20:38:03 -07:00 committed by Richard Megginson
parent 3167b3c125
commit ba932115fb
2 changed files with 1 additions and 7 deletions

View file

@ -4,7 +4,7 @@ on: # yamllint disable-line rule:truthy
- pull_request
env:
TOX_LSR: "git+https://github.com/linux-system-roles/tox-lsr@1.0.2"
LSR_ANSIBLES: 'ansible==2.7.* ansible==2.8.* ansible==2.9.*'
LSR_ANSIBLES: 'ansible==2.8.* ansible==2.9.*'
LSR_MSCENARIOS: default
# LSR_EXTRA_PACKAGES: "libdbus-1-dev libgirepository1.0-dev python3-dev"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -25,8 +25,6 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
command: /usr/lib/systemd/systemd --system
groups:
- py3
provisioner:
name: ansible
log: true
@ -34,10 +32,6 @@ provisioner:
enabled: false
playbooks:
converge: ../../tests/tests_default.yml
inventory:
group_vars:
py3:
ansible_python_interpreter: /usr/bin/python3
scenario:
name: default
test_sequence: