Tasks using the "file" module fail when run with async (or using "-B" from the command line) when the remote system has selinux enabled. The requested operation completes, however the module reports a failed status.
STEPS TO REPRODUCE
Enable selinux on the remote system
Run a play or command against the remote system using the file module running with async
ansible $REMOTEHOST -m file -B 4 -a 'path=/tmp/junk state=directory'
<!--- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!--- What did you expect to happen when running the steps above? -->
Module should operate the same as it would if it weren't run with async (not fail)
##### ACTUAL RESULTS
<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->
Module reported an error although the directory on the remote system was created:
<!--- Paste verbatim command output between quotes below -->
Using /etc/ansible/ansible.cfg as config file
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.6/site-packages/ansible/plugins/callback/init.pyc
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL 6 managing RHEL 6
SUMMARY
Tasks using the "file" module fail when run with async (or using "-B" from the command line) when the remote system has selinux enabled. The requested operation completes, however the module reports a failed status.
STEPS TO REPRODUCE
Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.6/site-packages/ansible/plugins/callback/init.pyc