ansible recipes

Here are some small ansible playbooks snippets

run a command only if a file exists

The command and shell module care about return codes, so if you have a command whose successful exit code is not zero

Handlers are lists of tasks, not really any different from regular tasks, that are referenced by a globally unique name, and are notified by notifiers. If nothing notifies a handler, it will not run.


Here is how to copy some files (remote to remote) :

(the copy module does not support recursion on remote_src )


Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.