From 5d1641051886e9b55060f06f82d42c88e8e8a9f5 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 12 Nov 2014 17:16:02 -0500 Subject: [PATCH] corrected comparisson which had accidentally chaned in previous fixes --- lib/ansible/modules/packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index e7d2ce4485..ab08a06db6 100755 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -525,7 +525,7 @@ def main(): p['default_release'], dpkg_options) if p['deb']: - if p['state'] == 'present': + if p['state'] != 'present': module.fail_json(msg="deb only supports state=present") install_deb(module, p['deb'], cache, install_recommends=install_recommends,