1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

fixup install dependency on test specific runme.sh

This commit is contained in:
Eero Aaltonen 2026-03-01 13:13:04 +02:00
parent 47429d67c4
commit e301eb11c2
2 changed files with 16 additions and 8 deletions

View file

@ -1,8 +0,0 @@
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# requirement for the pgp_keyring action plugin
PGPy == 0.6.0 ; python_version <= '3.12'
PGPym ~= 0.6.1 ; python_version >= '3.13'

View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
set -eux
source virtualenv.sh
# Requirements have to be installed prior to running ansible-playbook
# because plugins and requirements are loaded before the task runs
pip show -qq PGPy || \
pip install PGPym
ANSIBLE_ROLES_PATH=../ ansible-playbook runme.yml "$@"