Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates
This commit is contained in:
commit
53695f4fff
411 files changed
+7817
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
REPO_URL="${REPO_URL:?Set REPO_URL to the nbops-ansible Git URL}"
|
||||
PLAYBOOK="${PLAYBOOK:-playbooks/pull.yml}"
|
||||
BRANCH="${BRANCH:-main}"
|
||||
|
||||
ansible-pull \
|
||||
-U "$REPO_URL" \
|
||||
-C "$BRANCH" \
|
||||
-i localhost, \
|
||||
-c local \
|
||||
"$PLAYBOOK" \
|
||||
--accept-host-key
|
||||
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
ansible-playbook --syntax-check playbooks/site.yml
|
||||
|
||||
if command -v ansible-lint >/dev/null 2>&1; then
|
||||
ansible-lint
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user