mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive
refactoring of playbooks now warranted, which we'll do before we move on. This variable assignment system makes nearly all possible magic possible, for we can use these variables however we like, even as module names!
This commit is contained in:
@@ -52,6 +52,15 @@ class PlaybookCallbacks(object):
|
||||
def on_ok(self, host, host_result):
|
||||
print "ok: [%s]\n" % (host)
|
||||
|
||||
def on_setup_primary(self):
|
||||
print "preparing nodes..."
|
||||
|
||||
def on_setup_secondary(self):
|
||||
print "preparing conditional imports..."
|
||||
|
||||
def on_import_for_host(self, host, imported_file):
|
||||
pass
|
||||
|
||||
def on_play_start(self, pattern):
|
||||
print "PLAY [%s] ****************************\n" % pattern
|
||||
|
||||
|
||||
Reference in New Issue
Block a user