From dd60036fb9778dde702b73e2542b8e05af9ad1ff Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 14 Nov 2014 11:13:36 -0500 Subject: [PATCH] added changed status to return when new early create check is triggered, added skipped check to test on create existing --- lib/ansible/runner/action_plugins/unarchive.py | 1 + test/integration/roles/test_unarchive/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/ansible/runner/action_plugins/unarchive.py b/lib/ansible/runner/action_plugins/unarchive.py index 87bae2674c8..b528a25a397 100644 --- a/lib/ansible/runner/action_plugins/unarchive.py +++ b/lib/ansible/runner/action_plugins/unarchive.py @@ -69,6 +69,7 @@ class ActionModule(object): comm_ok=True, result=dict( skipped=True, + changed=False, msg=("skipped, since %s exists" % creates) ) ) diff --git a/test/integration/roles/test_unarchive/tasks/main.yml b/test/integration/roles/test_unarchive/tasks/main.yml index 073ccf9145d..7caa68e65cc 100644 --- a/test/integration/roles/test_unarchive/tasks/main.yml +++ b/test/integration/roles/test_unarchive/tasks/main.yml @@ -87,6 +87,7 @@ assert: that: - "unarchive02c.changed == false" + - "unarchive02c.skipped == true" - name: remove our tar.gz unarchive destination file: path={{output_dir}}/test-unarchive-tar-gz state=absent