add exit_json

add exit_json code to succesfully exit, when you want to delete the already
deleted host.
Without this, playbook fails with
`Specify at least one group for creating host`
which is not correct message.
pull/18777/head
t.goto 9 years ago committed by Matt Clay
parent b03d1da393
commit 8a3c60cfd2

@ -485,6 +485,10 @@ def main():
else:
module.exit_json(changed=False)
else:
if state == "absent":
# the host is already deleted.
module.exit_json(changed=False)
# Use proxy specified, or set to 0 when adding new host
if proxy:
proxy_id = host.get_proxyid_by_proxy_name(proxy)

Loading…
Cancel
Save