From 7730341d2487ffc52f0bdd1b9f0dbf65e02ae1cb Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 23 Feb 2012 23:54:16 -0500 Subject: [PATCH] We don't have modules that list when things change just yet. I plan to handle this by having a changed=True/False in the JSON for these modules. Added a note so folks won't think we can only execute shell :) --- examples/playbook.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/playbook.yml diff --git a/examples/playbook.yml b/examples/playbook.yml new file mode 100644 index 00000000000..7b5ec9c5c48 --- /dev/null +++ b/examples/playbook.yml @@ -0,0 +1,16 @@ +- pattern: '*.prod.example.com' + tasks: + - do: + - update apache (note: service module TBD) + - command + - [/usr/bin/yum, update, apache] + onchange: + - do: + - restart apache (note: service module TBD) + - command + - [/sbin/service, apache, restart] + - do: + - run bin false + - command + - [/bin/false] +