Hi, I'm new to ansible and have been unable to achieve the following:
I would like to include tasks in my playbook and run them with another user 
that's running the playbook.

I have tried the following, without success:

- include: mytasks.yml remote_user=toto

I have also tried this (from the documentation)

- include: mytasks.yml 
  vars: 
      remote_user: toto

but again, when running the playbook, the tasks are executed with the 
playbook remote user and not the one defined next to the include. 

I'm using ansible 1.5.4.

Is there anyway to do this ? or do I have to specify the remote_user for 
each and every task in the tasks file ?
thanks a lot,
regards,
ozb.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2487b810-9643-46a7-9f70-1444e2670051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to