Commit 6c44e264 by Mike Grozak

added possibility to force symlinks to none-existent destination (which might appear later)

parent 57154b04
......@@ -273,7 +273,8 @@ def main():
abs_src = src
else:
module.fail_json(msg="absolute paths are required")
if not os.path.exists(abs_src):
if not os.path.exists(abs_src) and not force:
module.fail_json(path=path, src=src, msg='src file does not exist')
if prev_state == 'absent':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment