Private
Public Access
2
0
This commit is contained in:
2026-01-20 17:40:16 +03:00
parent cda556eec6
commit b78da80550
83 changed files with 108 additions and 82 deletions

21
example/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 $*