From 1966dd28781349ff83b3e0ba37619edb43b610d4 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Thu, 16 Apr 2020 23:33:28 +0200 Subject: [PATCH] demo.sh wrapper for easy demo --- README.md | 10 ++++++---- demo.sh | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100755 demo.sh diff --git a/README.md b/README.md index 0da9fa2..7e9781b 100644 --- a/README.md +++ b/README.md @@ -63,15 +63,17 @@ Gathering Facts: Rassembler les faits Then, as you add task/play names don't forget to translate them. -# Example +# Demo -An example playbook.yml is provided in this repository for demo purposes. You can run it like this: +An example playbook.yml is provided in this repository for demo purposes. You can run it with the demo.sh script, which passes all arguments (such as -v and -vvv) to ansible-playbook: ``` # Following your locale -$ ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 playbook.yml +$ ./demo.sh # In french -$ LANG=fr ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 playbook.yml +$ LANG=fr ./demo.sh +# Display more info about stuff that changed +$ ./demo.sh -v ``` # FAQ diff --git a/demo.sh b/demo.sh new file mode 100755 index 0000000..3d44f9c --- /dev/null +++ b/demo.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ansible-playbook $@ --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 playbook.yml