On 8/21/19 2:14 PM, Karther wrote: > Hey all !! > > Ok thanks very much community ansible for your help !! :) > > It's very pity that ansible not can play the same playbook on the same host > with different user ... > > Thanks very much for your help !! :) > > Regards, > > Karther
I didn't say that, but in the inventory you can't use the hostname twice. You
can cheat with
two different "fake" host names and ip address in the inventory line, but a
better solution
would be to loop the tasks over the users. For example you can use a custom
variable containing
both user names and loop over them in the tasks.
Regards
Racke
>
> Le mardi 20 août 2019 17:00:33 UTC+2, Karther a écrit :
>
> Hey,
>
> I want to know if possible use a lot of user for ansible.
>
> Exemple, if i use *ansible_user=user1, user2*
>
> because i want to use *serial: 1*
>
> And i want that ansible use firt user1 and secondaly user2
>
> If possible or not please ??
>
> Regards,
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1aeb59b1-aff3-44a6-b530-b2284013169e%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1aeb59b1-aff3-44a6-b530-b2284013169e%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/ee9ab4b7-8ab0-5a35-5504-c7978a2674ed%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
