ansible/ansible-modules-core — pull request #514 by jbradberry (2014-12-15 01:58:39+00:00)
Title: Fix breakage in lineinfile check mode when target file does not exist.

Similarly to https://github.com/ansible/ansible/issues/6182, checking of the file attributes should be avoided in check mode when the file didn't originally exist.

Also, avoid creating parent directories in check mode.

Fixes https://github.com/ansible/ansible/issues/9546