remote_user

Hi,

I’m new to Ansible.

I’ve started by reading:
http://ansibleworks.com/docs/playbooks.html

This page says:

" The remote_user parameter was formerly called just user. It was renamed in Ansible 1.4 to make it more distinguishable from the user module (used to create users on remote systems). "

I’ve then read the following page:
http://www.ansibleworks.com/docs/playbooks2.html

In the section named “Loops”, examples for creating users are using “remote_user” instead of “user” (the user module).

It’s a mistake, right ?

No, the documents are typically updated to reflect the state of the development branch, as many people use ansible directly from a git checkout. As the note in the first page of the playbooks documentation notes, the parameter is named “user:” if you are using 1.3.x or before.

I think Laurent is right, the playbooks2 page mentions this example:

- name: add several users
  remote_user: name={{ item }} state=present groups=wheel
  with_items:
     - testuser1
     - testuser2

“remote_user” is used here as the module name, but should be “user”

Ahh, I see, yes that is incorrect. I’ll get that fixed ASAP. Thanks!

The docs have been updated, thanks for catching that!