Issue 1:
I put ansible_ssh_user in inventory, to cope with the fact that new instances in our cloud demand login with different users, depending on distro (root, cirros, debian, etc.) But this overrides remote_user in playbooks.

I mentioned this issue on #ansible, and @jctanner asked me to file a bug for it. Not a big deal for me, because I have a workaround (which is to use sudo_user instead of remote_user).

How to repeat

cat > ansible_hosts << EOF
[demo]
localhost

[demo:vars]
ansible_ssh_user=root
EOF

cat > demo-bug.yml << EOF

---
- hosts: demo
remote_user: $LOGNAME
tasks:
- name: Echo remote user
shell: echo \$LOGNAME
- name: Prove that remote user is $LOGNAME
shell: test \$LOGNAME = sheldonh
EOF

ansible-playbook -i ansible_hosts demo-bug.yml -v

Note that the second task fails, because the remote_user was ignored in favour of root (which you can see proven in the verbose output of the first task.

Issue 2:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

ansible --version
ansible 2.2.0 (devel 3121e352f7) last updated 2016/06/03 14:30:49 (GMT -500)
lib/ansible/modules/core: (detached HEAD 2bd8d78a8b) last updated 2016/06/03 14:30:49 (GMT -500)
lib/ansible/modules/extras: (detached HEAD b0aec50b9a) last updated 2016/06/01 14:41:34 (GMT -500)
config file = /Users/tanner/projects/ansible.git/playbooks.git/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

No changes to the ansible.cfg or environment variables

OS / ENVIRONMENT

Running from OS X 10.11.5

Managing: N/A

SUMMARY

Attempting to get Ansible working with Windows.

A simple inventory files and a very simple playbook with a very simple task fails to load with the error message: "ERROR! Unexpected Exception: need more than 1 value to unpack"

STEPS TO REPRODUCE

Inventory file testing-windows

[windows-workstations]
winvm1.tanners.org
winvm2.tanners.org
winvm3.tanners.org
winvm4.tanners.org
winvm5.tanners.org

Playbook windows-workstations.yml

---
# file: windows-workstations.yml

- hosts: windows-workstations
vars:
pre_tasks:
roles:
tasks:
post_tasks:

EXPECTED RESULTS

Playbook would load and do nothing

ACTUAL RESULTS

$ ansible-playbook -i testing-windows windows-workstations.yml -vvv
Using /Users/tanner/projects/ansible.git/playbooks.git/ansible.cfg as config file
ERROR! Unexpected Exception: need more than 1 value to unpack
the full traceback was:

Traceback (most recent call last):
File "/Users/tanner/projects/ansible.git/ansible/bin/ansible-playbook", line 97, in <module>
exit_code = cli.run()
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/cli/playbook.py", line 154, in run
results = pbex.run()
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/executor/playbook_executor.py", line 73, in run
self._inventory.set_playbook_basedir(os.path.dirname(playbook_path))
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/inventory/__init__.py", line 697, in set_playbook_basedir
self.get_group_vars(group)
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/inventory/__init__.py", line 715, in get_group_vars
return self._get_hostgroup_vars(host=None, group=group, new_pb_basedir=new_pb_basedir)
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/inventory/__init__.py", line 776, in _get_hostgroup_vars
self._variable_manager.add_group_vars_file(base_path, self._loader)
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/vars/__init__.py", line 602, in add_group_vars_file
data = self._load_inventory_file(path, loader)
File "/Users/tanner/projects/ansible.git/ansible/lib/ansible/vars/__init__.py", line 540, in _load_inventory_file
_found, results = self._load_inventory_file(path=p, loader=loader)
ValueError: need more than 1 value to unpack