Issue 1:
From @d3v1an7 on July 21, 2016 8:38

ISSUE TYPE

Bug Report [or]

Documentation Report

COMPONENT NAME

osx_defaults

ANSIBLE VERSION

ansible 2.2.0 (devel 372018dfce) last updated 2016/07/21 18:27:38 (GMT +1100)
lib/ansible/modules/core: (detached HEAD 7de287237f) last updated 2016/07/21 18:27:59 (GMT +1100)
lib/ansible/modules/extras: (detached HEAD 68ca157f3b) last updated 2016/07/21 18:28:05 (GMT +1100)
config file =
configured module search path = Default w/o overrides

Also had issue on 2.1.

CONFIGURATION

Playbook level ansible.cfg

retry_files_enabled = False

OS / ENVIRONMENT

10.11.5

SUMMARY

When attempting to interface with an array, I get the error: Invalid value. Expected value to be an array.

STEPS TO REPRODUCE

Copy code from docs: http://docs.ansible.com/ansible/osx_defaults_module.html

- osx_defaults:
key: AppleLanguages
type: array
value: ["en", "nl"]

EXPECTED RESULTS

A green ok :)

ACTUAL RESULTS

TASK [system/install : osx_defaults] *******************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Invalid value. Expected value to be an array"}

Copied from original issue: ansible/ansible-modules-extras#2610

Issue 2:
ISSUE TYPE

bug report

COMPONENT NAME

service module

ANSIBLE VERSION

ansible 1.9.4

CONFIGURATION

retry_files_enabled = False

OS / ENVIRONMENT

Running from Mac OS X 10.10.5 python 2.7.10

to FreeBSD 10.1-RELEASE-p16 0 Tue Jul 28 120419 UTC 2015

with PostgreSQL 9.4.5

SUMMARY

Attempting to use the 'service' module to control PostgreSQL hangs every time. I strongly suspect that this is the same issue as #5923

STEPS TO REPRODUCE

1) Install postgres94-client and postgres94-server packages on FreeBSD 10.1
2) set up inventory so that the dbserver is in group fll2-dev-dbservers in inventory file development.ini
[fll2-dev-dbservers]
fll2gdbs01dev

3) ansible -vvvv -i development.ini fll2-dev-dbservers -m service -a "name=postgresql state=stopped"

EXPECTED RESULTS

pg_ctl is called to stop the server, returns when finished, ansible reports success/failure and server state

ACTUAL RESULTS

<fll2gdbs01dev> ESTABLISH CONNECTION FOR USER: rmartin
<fll2gdbs01dev> REMOTE_MODULE service name=postgresql state=restarted
<fll2gdbs01dev> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/rmartin/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 fll2gdbs01dev /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931 && echo $HOME/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931'
<fll2gdbs01dev> PUT /var/folders/j_/gh1x7cn138b04zb7w6q41ffw59y07m/T/tmpHfd5G9 TO /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/service
<fll2gdbs01dev> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/rmartin/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 fll2gdbs01dev /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/local/bin/python2.7 /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/service; rm -rf /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/ >/dev/null 2>&1'

ps auxww excerpt on the server during the hang:

rmartin 1258 0.0 0.1 17068 2484 0 Is+ 3:14PM 0:00.01 /bin/sh -c LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/local/bin/python2.7 /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/service; rm -rf /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/ >/dev/null 2>&1
rmartin 1259 0.0 0.3 81724 13236 0 S+ 3:14PM 0:00.16 /usr/local/bin/python2.7 /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/service
rmartin 1261 0.0 0.1 17068 2852 0 I+ 3:14PM 0:00.03 /bin/sh /usr/local/etc/rc.d/postgresql onestatus
root 1268 0.0 0.1 49768 2652 0 I<+ 3:14PM 0:00.00 su -l pgsql -c exec /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l /dev/null -w -s -m fast status

I have tried both with and without the fix suggested in the old ticket #5923:

postgresql_flags="-l /dev/null -w -s -m fast"

It has not made a difference.

Note that copying the ansible command

LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/local/bin/python2.7 /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/service; rm -rf /home/rmartin/.ansible/tmp/ansible-tmp-1447359262.53-79308781944931/ >/dev/null 2>&1

from the hung SSH command above, and pasting it into a bash prompt running on that server over interactive SSH works fine.

Any ideas why this is misbehaving, or how to work around it?

Copied from original issue: ansible/ansible-modules-core#2459