demo.sh wrapper for easy demo

This commit is contained in:
southerntofu 2020-04-16 23:33:28 +02:00
parent 3119e3a4cf
commit 1966dd2878
2 changed files with 8 additions and 4 deletions

View File

@ -63,15 +63,17 @@ Gathering Facts: Rassembler les faits
Then, as you add task/play names don't forget to translate them. 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 # Following your locale
$ ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 playbook.yml $ ./demo.sh
# In french # 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 # FAQ

2
demo.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
ansible-playbook $@ --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 playbook.yml