From 018dcbbab2c0490423eadddc9618134905ae7ee3 Mon Sep 17 00:00:00 2001 From: Ted Cook Date: Mon, 30 Oct 2023 23:13:36 -0600 Subject: [PATCH] Refactor requirements makefile target --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e7e0792..47aa13a 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,8 @@ requirements: install --role-file ${ROLE_FILE} @poetry run ansible-galaxy collection install \ --force-with-deps . - @find ${ROLE_DIR} -wholename "*meta/main.yml" | xargs sed -ie 's/nephelaiio\.plugins/nephelaiio.mongodb.plugins/g' - @find ${ROLE_DIR} -wholename "*meta/main.yml" | xargs sed -ie 's/nephelaiio\.mongodb_repo/nephelaiio.mongodb.repo/g' + @grep -Rl "nephelaiio\.plugins" ${ROLE_DIR} | xargs sed -rL -ie 's/nephelaiio\.plugins/nephelaiio.mongodb.plugins/g' + @grep -Rl "nephelaiio\.mongodb_repo" ${ROLE_DIR} | xargs sed -rL -ie 's/nephelaiio\.mongodb_repo/nephelaiio.mongodb.repo/g' @find ${ROLE_DIR} -type d -name filter_plugins | xargs -r cp -a -t ${PLUGIN_DIR}/ @find ${ROLE_DIR} -type d -name test_plugins | xargs -r cp -a -t ${PLUGIN_DIR}/ @rm -rf ${ROLE_DIR}/plugins