Private
Public Access
2
0

First commit

This commit is contained in:
2026-01-07 14:27:55 +03:00
commit 0ffc9385c3
47 changed files with 11658 additions and 0 deletions

21
ansible/run_ansible.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
ANSIBLE_CONFIG=./ansible.cfg
export ANSIBLE_CONFIG
PLAY="main"
if [ "$1" == "--play" ]; then
shift
PLAY="$1"
shift
fi
if [ -f "./ansible_local.env" ]; then
. ./ansible_local.env
fi
if [ -f "./requirements.yml" ]; then
ansible-galaxy install -r requirements.yml
fi
ansible-lint --strict --project-dir . play-${PLAY}.yml && time ansible-playbook play-${PLAY}.yml $*