Compare commits
No commits in common. "80c3565fa11a927c46192ec6cb84372ff3caada6" and "6afb84b4438cb92c22f7a2363d937f08d569bef2" have entirely different histories.
80c3565fa1
...
6afb84b443
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,4 +5,3 @@ playbooks/testing.yml
|
|||||||
*.idea
|
*.idea
|
||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
.venv/
|
.venv/
|
||||||
.ansible/
|
|
||||||
|
8
Makefile
8
Makefile
@ -1,8 +0,0 @@
|
|||||||
clean:
|
|
||||||
rm --recursive --force .ansible/
|
|
||||||
|
|
||||||
dev:
|
|
||||||
poetry install --remove-untracked
|
|
||||||
poetry run pre-commit install
|
|
||||||
poetry run ansible-galaxy collection install --requirements-file ./requirements.yaml --collections-path ./.ansible
|
|
||||||
./dynamically-link-local-collections.bash
|
|
6
ansible
6
ansible
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
ANSIBLE_COLLECTIONS_PATH=$(pwd)/.ansible \
|
ANSIBLE_LIBRARY='' \
|
||||||
|
ANSIBLE_FILTER_PLUGINS='' \
|
||||||
|
ANSIBLE_CONFIG='' \
|
||||||
ANSIBLE_INVENTORY=$(pwd)/inventory.yaml \
|
ANSIBLE_INVENTORY=$(pwd)/inventory.yaml \
|
||||||
"ansible-$1" "${@:2}"
|
"ansible-$1" ${@:2}
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
PWD=$(pwd)
|
|
||||||
ANSIBLE_NAMESPACE="skylab"
|
|
||||||
ANSIBLE_COLLECTION_DIR="$PWD/.ansible/ansible_collections"
|
|
||||||
|
|
||||||
mkdir --parents "$ANSIBLE_COLLECTION_DIR/$ANSIBLE_NAMESPACE"
|
|
||||||
|
|
||||||
for collection_path in "$PWD"/"$ANSIBLE_NAMESPACE"/*; do
|
|
||||||
collection=$(basename "$collection_path")
|
|
||||||
if [[ ! -L "$ANSIBLE_COLLECTION_DIR/$ANSIBLE_NAMESPACE/$collection" ]]; then
|
|
||||||
echo "Linking $ANSIBLE_NAMESPACE.$collection into $ANSIBLE_COLLECTION_DIR"
|
|
||||||
rm --recursive --force "${ANSIBLE_COLLECTION_DIR:?}/$ANSIBLE_NAMESPACE/$collection"
|
|
||||||
ln --symbolic "$PWD/$ANSIBLE_NAMESPACE/$collection" "$ANSIBLE_COLLECTION_DIR/$ANSIBLE_NAMESPACE/$collection"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Done!"
|
|
@ -16,5 +16,4 @@ build_ignore: []
|
|||||||
# collection label 'namespace.name'. The value is a version range
|
# collection label 'namespace.name'. The value is a version range
|
||||||
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
|
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
|
||||||
# range specifiers can be set and are separated by ','
|
# range specifiers can be set and are separated by ','
|
||||||
dependencies:
|
dependencies: {}
|
||||||
community.docker: ">=2.0.2,<3.0.0"
|
|
||||||
|
Reference in New Issue
Block a user