Make it such that modules with no arguments work fine in playbooks (like ping, which is
non-sensical, but also if the user wrote a module that took none)
This commit is contained in:
parent
c0c691089d
commit
3d72260887
1 changed files with 3 additions and 1 deletions
|
@ -378,7 +378,9 @@ class PlayBook(object):
|
|||
|
||||
tokens = action.split(None, 1)
|
||||
module_name = tokens[0]
|
||||
module_args = tokens[1]
|
||||
module_args = ''
|
||||
if len(tokens) > 1:
|
||||
module_args = tokens[1]
|
||||
|
||||
# include task specific vars
|
||||
module_vars = task.get('vars')
|
||||
|
|
Loading…
Reference in a new issue