diff --git a/sysutils/py-ansible-base/Makefile b/sysutils/py-ansible-base/Makefile
index 08a190453c6c..1279f569e284 100644
--- a/sysutils/py-ansible-base/Makefile
+++ b/sysutils/py-ansible-base/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ansible-base
 DISTVERSION=	2.10.9
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -65,7 +66,7 @@ post-patch:
 	${FIND} ${WRKSRC} -not -regex '${WRKSRC}/test/units/cli/galaxy/test_execute_list_collection.py' -type f -print0 | \
 		${XARGS} -0 ${REINPLACE_CMD} \
 			-e 's|/etc/ansible|${ETCDIR}|g' \
-			-e 's|/usr/share/ansible|${DATADIR}|g'
+			-e 's|/usr/share/ansible|${PREFIX}/share/${PYTHON_PKGNAMEPREFIX}ansible|g'
 	${FIND} ${WRKSRC} -type f -name "*.bak" -delete
 
 post-install: