Do not mark "skipped" when changed is false
When using the "creates" option with the script module, set changed to False if the file already exists. This behavior is consistent with other modules which use "creates", such as command and shell.
This commit is contained in:
parent
787388ac30
commit
67eb9f301d
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ class ActionModule(object):
|
||||||
conn=conn,
|
conn=conn,
|
||||||
comm_ok=True,
|
comm_ok=True,
|
||||||
result=dict(
|
result=dict(
|
||||||
skipped=True,
|
changed=False,
|
||||||
msg=("skipped, since %s exists" % creates)
|
msg=("skipped, since %s exists" % creates)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -83,7 +83,7 @@ class ActionModule(object):
|
||||||
conn=conn,
|
conn=conn,
|
||||||
comm_ok=True,
|
comm_ok=True,
|
||||||
result=dict(
|
result=dict(
|
||||||
skipped=True,
|
changed=False,
|
||||||
msg=("skipped, since %s does not exist" % removes)
|
msg=("skipped, since %s does not exist" % removes)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue