From: Oleg Broytman Date: Fri, 12 Jul 2019 22:23:33 +0000 (+0300) Subject: Feat(run-playbook): Run any playbook from the command line X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=230fe6cf89f78fe34ef0c2bd282629ef72a59379;p=ansible.git Feat(run-playbook): Run any playbook from the command line Rename debian-update-all-apt.sh -> 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}