Adding ec2-related module example to examples/playbooks
teach apt module to support --check mode
teach lineinfile module to support --check mode
fixes freebsd setup issues with jails
Signed-off-by: Brian Coca <bcoca@tablethotels.com>
Prevents PATH, PYTHONPATH etc... to be re-added.
Add support for security group id parameter, remove default for group name (since AWS already sets a default). ISSUE #2029
Always adjust file attributes with the template module.
uri: load JSON for content-type: application/json
document
check prefix of content-type and merge dicts
amend doc
load JSON into 'json' subkey
pause: Fix small documentation glitch
Added more users of ansible (TCHPC and DRI)
Fix diff output vertical spacing
Adds path expanding for dest in lineinfile

lineinfile now expands path for 'dest' param
Adds common file args to lineinfile

Added common file arguments to lineinfile so the module gets owner,
group, mode and SE options.
Adds file options example for lineinfile

Decorated existing example to demonstate usage of file options.
cron: Work even without initial crontab

Fixes #2165.
Adds PR fixes, doc and missing file handling

File attributes code has been moved out of the way of backup code, so
perms change doesn't trigger a backup.
Message is not set accordingly when file attributes were changed
'absent' handling code now handles the case where the file doesn't
exists (was issuing a Traceback before)
File attribute handling code has been added to the 'asent' handling
function too.
Examples and documentation has been added.
Groups file handling and adds msg for absent case

File attributes handling has been grouped in 'def check_file' since it's
required in both places.
absent mode not returns a message like it's counterpart 'present',
telling if file attributes were atered and if lines have matched.