Hey,

I thinks you have not understand.

I have *my inventory host* with this content :

my_host_1   ansible_user=wildfly
my_host_1   ansible_user=toto

When i play my playbook, ansible run playbook only on the first line *my_host_1 
 
 ansible_user=wildfly* and not on the second line.
So, same when i use *serial: 1* in my playbook, ansible run only the first 
line.

I think ansible refers only to the host name and does not execute every 
line of my inventory ...?

Do you have any solution please for me community ansible !!! :)

Regards,

Le mercredi 21 août 2019 08:47:05 UTC+2, Zolvaring a écrit :
>
> Ah I missed your detail about serial usage, but am not sure how you could 
> do that. You could import or include a play with some sort of loop, or 
> maybe registering a var after the final task and setting ansible_ssh_user 
> to that var if it exists prior to the first task?

-- 
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/0b3cc4e9-08d9-45db-8b34-2752172cdd8b%40googlegroups.com.

Reply via email to