now if you set fork to 0 or a number higher than the number of hosts, it
will be readjusted to the number of hosts runner is going to deal with.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
Never ask for SSH password when using local connection.

With the command line option "-c local", ansible and ansible-playbook
should never ask for a SSH password even if this is set in the config.

Fixes #3720
now bad ini entries will throw friendlier error
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
Fix traceback in service module when svc_cmd is None

When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

Fixes issue #3533
Add a nocolor setting to ansible.cfg
Modified playbooks2.rst to include conditional boolean example.
digital_ocean #3438: use get instead of [] to prevent KeyError

The existing code was using:
  a[b][c[d]]
where a[b] would always exist and c[d] would always exist.
But the nested index would not alway exist, particularly when a DigitalOcean item disapeared.

This changes that nested index to a `get` and properly handles None results.

This bug was present in two spots in this file.
Fix traceback when openstack do not have OS-EXT-IPS:type attached to address

    failed: [127.0.0.1] => {"failed": true, "parsed": false}
    invalid output was: Traceback (most recent call last):
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 1176, in <module>
        main()
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 239, in main
        _get_server_state(module, nova)
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 198, in _get_server_state
        private = [ x['addr'] for x in getattr(server, 'addresses').itervalues().next() if x['OS-EXT-IPS:type'] == 'fixed']
    KeyError: 'OS-EXT-IPS:type'

This extension was added less than 6 month ago, and so cannot be used on a release
older than Grizzly ( like Folsom ).

Commit of the extension : https://review.openstack.org/#/c/21453/

See https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Key_New_Features_2
implemented 'inventory_file' variable. Closes GH-3789.
Construct the multiprocessing manager only once.
Merge branch 'feature/gh-3789-inventory-file' of https://github.com/resmo/ansible into devel
Merge pull request #3809 from mscherer/fix_openstack_folsom

Fix traceback when openstack do not have OS-EXT-IPS:type attached to add...
Merge pull request #3805 from lwade/docs

Modified playbooks2.rst to include conditional boolean example.
fix an encoding bug in copy content = lookup plugin

closes #3518
Remove some test prints
Merge pull request #3806 from neomantra/issue_3438_x

digital_ocean #3438: use get instead of [] to prevent KeyError
support i18n on sudo failure
Merge branch 'devel' of git://github.com/hura/ansible into devel
Smite tabs in whitespace.
Misc style fixes.