diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 7f7054fc478..9246fd1df7b 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -685,6 +685,8 @@ class AnsibleModule(object): if not isinstance(value, list): if isinstance(value, basestring): self.params[k] = value.split(",") + elif isinstance(value, int) or isinstance(value, float): + self.params[k] = [ str(value) ] else: is_invalid = True elif wanted == 'dict':