From: Andrew Schoen Date: Tue, 4 Aug 2015 15:16:39 +0000 (-0500) Subject: wip; add a testing playbook, do not use this commit X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9d4653c81d20d9e799660c761ecdebe893f726f;p=ceph-cm-ansible.git wip; add a testing playbook, do not use this commit Signed-off-by: Andrew Schoen --- diff --git a/callback_plugins/failure_log.py b/callback_plugins/failure_log.py index d4ef8a19..4fcb5b39 100644 --- a/callback_plugins/failure_log.py +++ b/callback_plugins/failure_log.py @@ -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 index 00000000..014083b4 --- /dev/null +++ b/test_failures.yml @@ -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