ansible.mk: Fix ANSIBLE_RUN_DEPENDS

sysutils/ansible does not provide the Ansible program directly. It is
provided by its dependencies (sysutils/py-ansible-core at the moment).

Fix the ANSIBLE_RUN_DEPENDS so that it looks for the ansible package
instead of the Ansible binary.
This commit is contained in:
Mateusz Piotrowski 2021-05-19 11:16:39 +02:00
parent f0c42a1410
commit 0fa7a28340

View File

@ -60,7 +60,7 @@ _USES_POST+= python:env
ANSIBLE_CMD?= ${LOCALBASE}/bin/ansible
ANSIBLE_DOC_CMD?= ${LOCALBASE}/bin/ansible-doc
ANSIBLE_RUN_DEPENDS?= ${ANSIBLE_CMD}:sysutils/ansible@${PY_FLAVOR}
ANSIBLE_RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
ANSIBLE_DATADIR?= ${PREFIX}/share/${PYTHON_PKGNAMEPREFIX}ansible
ANSIBLE_ETCDIR?= ${PREFIX}/etc/ansible