added ansible configuration and deployment script

This commit is contained in:
bryanpedini committed 2022-04-06 11:58:35 +02:00
1 parent ced9950477
commit dd092102fb
3 files changed
+20

No files matched your search

+1
View File
@@ -0,0 +1 @@
inventory.ini
+5
View File
@@ -0,0 +1,5 @@
[defaults]
interpreter_python = auto_silent
inventory = inventory.ini
remote_user = root
nocows = True
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
PLAYBOOK=$1
LIMIT=""
shift
for SERVICE in $@; do
LIMIT="${LIMIT} --limit $1"
shift
done
LIMIT=$(echo "${LIMIT}" | sed 's/^ //')
ansible-playbook "${LIMIT}" "${PLAYBOOK}"