From 65799353109a1c3878839d6b02ab822632275e2c Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 25 Nov 2021 16:50:39 -0800 Subject: [PATCH] + safety script to avoid breaking things later --- playbooks/check-syntax.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 playbooks/check-syntax.sh diff --git a/playbooks/check-syntax.sh b/playbooks/check-syntax.sh new file mode 100755 index 0000000..3d491b8 --- /dev/null +++ b/playbooks/check-syntax.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +for f in `find -name '*.yml'`; do + echo ansible-playbook -i hosts.ini --syntax-check $f + ansible-playbook -i hosts.ini --syntax-check $f +done