From 99d67261145a7db8be24a8d03701fdea4e05e699 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 27 Oct 2013 11:50:52 -0400 Subject: [PATCH] Revert "fix conversion from file to hardlink when force=yes" This reverts commit 4d4518ed52aca266ebabdc00aabae7da9568b68e. --- library/files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/files/file b/library/files/file index 056aa6ff3f..afffe4e9b9 100644 --- a/library/files/file +++ b/library/files/file @@ -231,7 +231,7 @@ def main(): module.exit_json(path=path, changed=True) if prev_state != 'absent' and prev_state != state: - if not (force and (prev_state == 'file' or prev_state == 'directory') and (state in ('link', 'hard')) and state != 'touch': + if not (force and (prev_state == 'file' or prev_state == 'directory') and state == 'link') and state != 'touch': module.fail_json(path=path, msg='refusing to convert between %s and %s for %s' % (prev_state, state, src)) if prev_state == 'absent' and state == 'absent':