Issue with printing unicode non-english characters #8425 patch
Only chown on atomic move if invoked as root

Linux and BSD derivatives do not allow unprivileged users to
"give away" files to others for security reasons. (System V
derivatives allow that but they're rare nowadays.)
Try optimistic chown, do not error out if not permitted to chown

Add unit test
roles: make role_path (path of current role) available as variable to the task
Merge branch 'devel' of https://github.com/l1k/ansible into l1k-devel

Conflicts:
	test/integration/roles/test_copy/tasks/main.yml
Remove tabs added from 677de07
Merge branch 'l1k-devel' into devel
Merge branch 'role_path_var' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-role_path_var
Merge branch 'sergevanginderachter-role_path_var' into devel
File module cannot create relative paths

When trying to create a directory relative to the current working
directory, a directory is created at the root of the filesystem
instead.  This patch ensures that directories specified with relative
paths will be created in the current working directory.  Fully
qualified paths aren't affected

Signed-off-by: Major Hayden <major@mhtx.net>
Merge branch 'relative-path-fix' of https://github.com/major/ansible into major-relative-path-fix
Merge branch 'major-relative-path-fix' into devel
Add error checking around json.dumps when not forcing ascii mode
Merge branch 'alozovskoy-alozovskoy-debug-ascii-patch' into devel
Allow ansible-galaxy to install roles from URLs

ansible-galaxy can now refer to SCM URLs (git and hg at this point)
for role names
Dependencies need to use the full SCM URLs too.
Otherwise all seems to work well

Test rolesfile
```
http://bitbucket.org/willthames/git-ansible-galaxy,v1.1
https://bitbucket.org/willthames/hg-ansible-galaxy
```
(works with ssh too)
Change to how SCM is determined

Change SCM determination from executing git/hg commands to explicit
in URL.

Fix check for already installed dependencies
Need to take URLs into account when running playbooks too

Ensure that if meta/main.yml has dependencies containing URLs
these are correctly resolved at playbook runtime.

Update role_name during run time so that output of e.g. task names
look sensible
Tidied up a little, added tests

Moved repo_url_to_role_name to common method in ansible.utils
Added unit test for repo_url_to_role_name
Added integration tests for galaxy
Ensured that role version can be specified in role dependencies
Improved handling of role_version in repo_url_to_role_name