Issue 1:
ISSUE TYPE

Documentation Report

COMPONENT NAME

http://docs.ansible.com/ansible/latest/dev_guide/developing_modules.html

ANSIBLE VERSION

2.4.0 or git heaed

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

The small Q/A to determine if it's worth writing a module leads to a broken link, in the line: "Check out the roles documentation available here." - the latter links to: http://docs.ansible.com/ansible/playbooks_reuse_roles.html#roles which is a 404.

STEPS TO REPRODUCE

Visit http://docs.ansible.com/ansible/latest/dev_guide/developing_modules.html

Scroll to item 4.

Click on "available here".

EXPECTED RESULTS

Documentation about roles should appear.

ACTUAL RESULTS

A 404 is served:

Not Found

The requested URL /ansible/latest/playbooks_reuse_roles.html was not found on this server.

Indeed, when building the documentation locally, a few such manuals do not get rendered at all. Here's the resulting log from a build on Debian stretch:

Running Sphinx v1.4.9
making output directory...
loading pickled environment... not yet created
loading intersphinx inventory from https://docs.python.org/2/objects.inv...
loading intersphinx inventory from http://jinja.pocoo.org/docs/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1507 source files that are out of date
updating environment: 1507 added, 0 changed, 0 removed
reading sources... [100%] win_rabbitmq_plugin_module .. zypper_repository_module
waiting for workers...
/home/anarcat/dist/ansible/docs/docsite/rst/community/index.rst:15: WARNING: toctree contains reference to nonexisting document u'community/special_interest_groups'
/home/anarcat/dist/ansible/docs/docsite/rst/data_pipeline_module.rst:19: WARNING: Bullet list ends without a blank line; unexpected unindent.
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/developing_modules_general_OLD.rst:4: WARNING: duplicate label module_dev_tutorial_sample, other instance in /home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/developing_modules_general.rst
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/index.rst:15: WARNING: toctree contains reference to nonexisting document u'dev_guide/developing_test_pr'
/home/anarcat/dist/ansible/docs/docsite/rst/netscaler_gslb_vserver_module.rst:546: WARNING: Literal block expected; none found.
/home/anarcat/dist/ansible/docs/docsite/rst/playbooks_keywords.rst:142: ERROR: Unknown target name: "with".
looking for now-outdated files... none found
pickling environment... done
checking consistency... /home/anarcat/dist/ansible/docs/docsite/rst/community/code_of_conduct.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/community/index.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/community/triage_process.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/community_maintained.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/core_maintained.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/developing_modules_general_OLD.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/compile/index.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/ansible-doc.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/ansible-var-precedence-check.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/boilerplate.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/configure-remoting-ps1.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/empty-init.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/import.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/index.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/integration-aliases.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/line-endings.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-basestring.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-dict-iterkeys.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-dict-itervalues.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-get-exception.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-underscore-variable.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/no-wildcard-import.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/pep8.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/pylint.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/pylint-ansible-test.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/replace-urlopen.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/required-and-default-attributes.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/rstcheck.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/sanity-docs.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/shebang.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/shellcheck.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/test-constraints.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/use-compat-six.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/validate-modules.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing/sanity/yamllint.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_compile.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_httptester.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_integration.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_integration_legacy.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_pep8.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_running_locally.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_sanity.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_units.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/dev_guide/testing_validate-modules.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/guide_kubernetes.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/network_debug_troubleshooting.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/network_maintained.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/partner_maintained.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/playbook_pathing.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/playbooks_roles.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/porting_guide_2.0.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/porting_guide_2.3.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/roadmap/ROADMAP_2_1.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/roadmap/ROADMAP_2_2.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/roadmap/ROADMAP_2_3.rst:: WARNING: document isn't included in any toctree
/home/anarcat/dist/ansible/docs/docsite/rst/roadmap/ROADMAP_2_4.rst:: WARNING: document isn't included in any toctree
done
preparing documents... done
writing output... [100%] win_route_module .. zypper_repository_module
waiting for workers...
[...]

I'm not exactly sure how to fix those warnings, but it seems to me that documentation should be linked somewhere so it gets rendered correctly?

Or maybe this is a problem with the rendering pipeline?

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

Synchronize Module

ANSIBLE VERSION

ansible 2.2.1.0
config file =
configured module search path = Default w/o overrides

CONFIGURATION

Not changed. Installed with Homebrew for MacOS

OS / ENVIRONMENT

MacOS Sierra

SUMMARY

I'm trying to synchronize a folder to a remote host. There's no Key Authentication, so I have to enter the password before running Ansible, with --ask-pass.

Everytime a file needs to be changed, the module asks for the password. I tried to use set_remote_user: no inside the playbook, but nothing happens.

STEPS TO REPRODUCE

Trying to run this play inside a Playbook:

## Update files
- name: "Copy files to /home"
synchronize:
src: "files/home/"
dest: "/home"
set_remote_user: no
when: "'group_name' in group_names"
ignore_errors: yes

EXPECTED RESULTS

Folder gets synchronized

ACTUAL RESULTS

Can't synchronize. Keeps asking for password.

TASK [Copy files to /home] *****************************************************
Password:
Password:
Password:
...ignoring
failed: [x.x.x.x] (item={u'path': u'files/home'}) => {"cmd": "/usr/bin/rsync --delay-updates -F --compress --dry-run --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no' --out-format='<<CHANGED>>%i %n%L' \"/Users/edobarroso/Code/path/to/home/\" \"x.x.x.x:/home\"", "failed": true, "item": {"path": "files/home"}, "msg": "Permission denied (publickey,keyboard-interactive).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/io.c(453) [sender=2.6.9]\n", "rc": 12}