Someone could help me with this case where I have multiple hosts and for these hosts I do not know which exact user but I have a list with some possible possible users. inside the hosts file I create the group: vars but I can only put a single user.
Hi Eduardo,
Ansible tends to be relatively prescriptive - you need to specify the username, or you’d need to specify multiple “host” entries with each of the usernames.
You could perform a “simple” action (like “ping” or “setup”) and let it stop processing hosts that it doesn’t get a response from? (Although, to be fair, I don’t entirely know how you’d do that).
Perhaps you’d be better off explaining what you’re trying to do?
Hi Jons springs, Tks for Help.
As an example below is my playbook and inventory file, basically the playbook will be to back up the configuration of the equipment but the equipment is with different users, when playing the playbook the first user that corresponds to any of the equipment is set for the too much where in the execution will give error because the user does not correspond to next equiapemento of the inventory.
Playbook