Fix respecting remote_tmp when sudo is used
Fixes related to uncommenting test_dir_inventory in TestInventory.

0. Uncomment the test.
1. Test fails.
2. Make vars unique per file in test inventory files.
3. Modify token addition to not ast.literal_eval(v) a variable containing a hash.
4. Modify vars to have an escape in test inventory file.
5. Catch exceptions explicitly. Any unknown exceptions should be a bug.
6. Test passes.
Fix logic checking for both sudo and su, and their respective users
add test same host in different files in dir

tests issue #5749
 same host defined in different groups which in turn are defined
 in different ini files in an inventory directory

Conflicts:
	test/units/TestInventory.py
modifed test to use get_hosts instead of get_groups

closes #5749

Conflicts:
	test/units/TestInventory.py
Formatting cleanup.

Post merging of GH-5837 via GH-5749.
Correct ansible_distribution typo

Redhat != RedHat
Merge branch 'devel' of https://github.com/aresch/ansible into aresch-devel
Merge pull request #6319 from risaacson/fix_test_dir_inventory

Fix TestInventory Unit Tests

Tested clean.
Merge branch 'aresch-devel' into devel
Allow any file that can be in YAML to also be in JSON.  This is primarily done to support non-visual editors better.
Also search .json filenames