forked from TerryHowe/ansible-modules-hashivault
-
Notifications
You must be signed in to change notification settings - Fork 1
/
link.sh
executable file
·16 lines (14 loc) · 916 Bytes
/
link.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh
DEST=$(echo "${VIRTUAL_ENV}"/lib/python*/site-packages/ansible/)
rm -rf "$DEST"/modules/hashivault
rm -f "$DEST"/module_utils/hashivault.py
rm -f "$DEST"/plugins/lookup/hashivault.py
rm -f "$DEST"/plugins/doc_fragments/hashivault.py
rm -f "$DEST"/plugins/action/hashivault_read_to_file.py
rm -f "$DEST"/plugins/action/hashivault_write_from_file.py
ln -s "$PWD"/ansible/modules/hashivault "$DEST"/modules/hashivault
ln "$PWD"/ansible/module_utils/hashivault.py "$DEST"/module_utils/hashivault.py
ln "$PWD"/ansible/plugins/lookup/hashivault.py "$DEST"/plugins/lookup/hashivault.py
ln "$PWD"/ansible/plugins/doc_fragments/hashivault.py "$DEST"/plugins/doc_fragments/hashivault.py
ln "$PWD"/ansible/plugins/action/hashivault_read_to_file.py "$DEST"/plugins/action/hashivault_read_to_file.py
ln "$PWD"/ansible/plugins/action/hashivault_write_from_file.py "$DEST"/plugins/action/hashivault_write_from_file.py