File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ minor_changes :
3+ - Development helper install_collection.sh (#279)
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Install the ansible-oracle collection from current source
4+ #
5+ set -eu
6+ WORKTDIR=" $( dirname ${BASH_SOURCE[0]} ) /../.."
7+ COLLECTION_OUTDIR=/tmp/ansible-oracle-collection
8+
9+ cd " ${WORKTDIR} "
10+ echo " Working in $( pwd) "
11+ test -s " ${COLLECTION_OUTDIR} " || mkdir " ${COLLECTION_OUTDIR} "
12+
13+ COLLECTION_VERSION=$( cat galaxy.yml | grep " ^version: " | cut -d" " -f2)
14+ COLLECTION_ARCHIVE=" ${COLLECTION_OUTDIR} /opitzconsulting-ansible_oracle-${COLLECTION_VERSION} .tar.gz"
15+ echo " COLLECTION_ARCHIVE: ${COLLECTION_ARCHIVE} "
16+
17+ echo " Building Collection"
18+ ansible-galaxy collection build -v --force --output-path " ${COLLECTION_OUTDIR} "
19+
20+ echo " Installing Collection"
21+ ansible-galaxy collection install -v --force " ${COLLECTION_ARCHIVE} "
22+
23+ echo " Removing Collectionarchiv"
24+ rm -f " ${COLLECTION_ARCHIVE} "
You can’t perform that action at this time.
0 commit comments