]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
wip; add a testing playbook, do not use this commit
authorAndrew Schoen <aschoen@redhat.com>
Tue, 4 Aug 2015 15:16:39 +0000 (10:16 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 4 Aug 2015 21:52:47 +0000 (16:52 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
callback_plugins/failure_log.py
test_failures.yml [new file with mode: 0644]

index d4ef8a1967557e57b5dff3f91476dedf3c02dc5b..4fcb5b39605b6261f9a207c4e5eeea076f31e01a 100644 (file)
@@ -16,9 +16,6 @@ def log_failure(host, result):
     failure = {"{0}".format(host): dict()}
     failure[host] = result
 
-    print "*******\n"
-    print yaml.safe_dump(failure)
-
     fail_log = os.environ.get('ANSIBLE_FAILURE_LOG')
     if fail_log:
         existing_failures = dict()
diff --git a/test_failures.yml b/test_failures.yml
new file mode 100644 (file)
index 0000000..014083b
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- hosts: all
+  tasks:
+    - debug: msg="I'll always fail"
+      failed_when: true 
+    - name: Echo a thing
+      command: echo 'hello'
+      failed_when: true