Some user of ansible_user

Hey all !!

Ok thanks very much community ansible for your help !! :slight_smile:

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 !! :slight_smile:

Regards,

Karther

Hi

Is this what you are looking for??

Hey all !!

Ok thanks very much community ansible for your help !! :slight_smile:

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 !! :slight_smile:

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

Hey,

How do that please ???

I am amateur for ansible

Thanks,

Regards,