From 230fe6cf89f78fe34ef0c2bd282629ef72a59379 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 13 Jul 2019 01:23:33 +0300 Subject: [PATCH] Feat(run-playbook): Run any playbook from the command line Rename debian-update-all-apt.sh -> run-playbook. --- playbooks/debian-update-all-apt.sh | 2 -- playbooks/run-playbook | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100755 playbooks/debian-update-all-apt.sh create mode 100755 playbooks/run-playbook diff --git a/playbooks/debian-update-all-apt.sh b/playbooks/debian-update-all-apt.sh deleted file mode 100755 index 347012f..0000000 --- a/playbooks/debian-update-all-apt.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/sh -exec ansible-playbook -v debian-update-all-apt.yml | ${PAGER:-more} diff --git a/playbooks/run-playbook b/playbooks/run-playbook new file mode 100755 index 0000000..4fb56e1 --- /dev/null +++ b/playbooks/run-playbook @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ -z "$1" ]; then + echo "Usage: $0 playbook.yml" >&2 + exit 1 +fi + +ansible-playbook -v "$1" | ${PAGER:-more} -- 2.39.5