From ef0bc0aa525568304a3da50f0b3a6efae18302f6 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Thu, 30 Mar 2017 13:08:10 +1000 Subject: [PATCH] Support check_mode for add_host `add_host` doesn't really actually change anything - there's no reason why it shouldn't work in `check_mode`. --- lib/ansible/plugins/action/add_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/add_host.py b/lib/ansible/plugins/action/add_host.py index c41c89d01e..9b46e5dd28 100644 --- a/lib/ansible/plugins/action/add_host.py +++ b/lib/ansible/plugins/action/add_host.py @@ -41,7 +41,7 @@ class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): - self._supports_check_mode = False + self._supports_check_mode = True result = super(ActionModule, self).run(tmp, task_vars)