summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/action/service.py')
-rw-r--r--lib/ansible/plugins/action/service.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/plugins/action/service.py b/lib/ansible/plugins/action/service.py
index 91ab0e6bd3..6af9034e2e 100644
--- a/lib/ansible/plugins/action/service.py
+++ b/lib/ansible/plugins/action/service.py
@@ -33,7 +33,7 @@ class ActionModule(ActionBase):
''' handler for package operations '''
self._supports_check_mode = True
- self._supports_async = True
+ self._supports_async = True
result = super(ActionModule, self).run(tmp, task_vars)
@@ -41,12 +41,12 @@ class ActionModule(ActionBase):
if module == 'auto':
try:
- if self._task.delegate_to: # if we delegate, we should use delegated host's facts
+ if self._task.delegate_to: # if we delegate, we should use delegated host's facts
module = self._templar.template("{{hostvars['%s']['ansible_facts']['ansible_service_mgr']}}" % self._task.delegate_to)
else:
module = self._templar.template('{{ansible_facts["ansible_service_mgr"]}}')
except:
- pass # could not get it from template!
+ pass # could not get it from template!
if module == 'auto':
facts = self._execute_module(module_name='setup', module_args=dict(gather_subset='!all', filter='ansible_service_mgr'), task_vars=task_vars)