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

reviewable/pr18780/r1
Mike Grozak 12 years ago
parent 4716b779f6
commit ee813d3bd7

@ -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':

Loading…
Cancel
Save