mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
[5.0.0] Remove Ansible 2.9 / ansible-base 2.10 compatibility code (#4548)
* Remove Ansible 2.9 / ansible-base 2.10 compatibility code. * Remove path_join shim from BOTMETA. * Update comment. * Bump minimally required ansible-core version.
This commit is contained in:
parent
36a0eca193
commit
1a9b3214fd
22 changed files with 44 additions and 276 deletions
|
@ -64,23 +64,12 @@
|
|||
register: install_rq0
|
||||
ignore_errors: true
|
||||
|
||||
- name: Assert requirements file was installed (Ansible >2.9)
|
||||
- name: Assert requirements file was installed
|
||||
assert:
|
||||
that:
|
||||
- install_rq0 is changed
|
||||
- '"geerlingguy.java" in install_rq0.new_roles'
|
||||
- '"geerlingguy.php_roles" in install_rq0.new_collections'
|
||||
when:
|
||||
- (ansible_version.major != 2 or ansible_version.minor != 9)
|
||||
|
||||
- name: Assert requirements file was installed (Ansible 2.9)
|
||||
assert:
|
||||
that:
|
||||
- install_rq0 is failed
|
||||
- install_rq0 is not changed
|
||||
when:
|
||||
- ansible_version.major == 2
|
||||
- ansible_version.minor == 9
|
||||
|
||||
- name: Install from requirements file (again)
|
||||
community.general.ansible_galaxy_install:
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_TEST_PREFER_VENV=1 # see https://github.com/ansible/ansible/pull/73000#issuecomment-757012395; can be removed once Ansible 2.9 and ansible-base 2.10 support has been dropped
|
||||
source virtualenv.sh
|
||||
|
||||
# Requirements have to be installed prior to running ansible-playbook
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_TEST_PREFER_VENV=1 # see https://github.com/ansible/ansible/pull/73000#issuecomment-757012395; can be removed once Ansible 2.9 and ansible-base 2.10 support has been dropped
|
||||
source virtualenv.sh
|
||||
|
||||
# Requirements have to be installed prior to running ansible-playbook
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_TEST_PREFER_VENV=1 # see https://github.com/ansible/ansible/pull/73000#issuecomment-757012395; can be removed once Ansible 2.9 and ansible-base 2.10 support has been dropped
|
||||
source virtualenv.sh
|
||||
|
||||
# Requirements have to be installed prior to running ansible-playbook
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_TEST_PREFER_VENV=1 # see https://github.com/ansible/ansible/pull/73000#issuecomment-757012395; can be removed once Ansible 2.9 and ansible-base 2.10 support has been dropped
|
||||
source virtualenv.sh
|
||||
|
||||
# The collection loader ignores paths which have more than one ansible_collections in it.
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -eux
|
||||
|
||||
export ANSIBLE_TEST_PREFER_VENV=1 # see https://github.com/ansible/ansible/pull/73000#issuecomment-757012395; can be removed once Ansible 2.9 and ansible-base 2.10 support has been dropped
|
||||
source virtualenv.sh
|
||||
|
||||
# The collection loader ignores paths which have more than one ansible_collections in it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue