How to use the different parameter for each host in playbook

Hi,

Could you please anyone help me to complete below request.

We need to excute the one playbook on 10 hosts and each task in playbook should use the different-2 parameter on each host.

Could you please how we can perform it.

Your prompt response will be appreciable for the same.

Thanks & Regards,
Devesh Kumar Singh

Tell us what are those 'different-2 parameter' are?

One playbook on 10 hosts with two different parameters.

What are the two parameters?

if its just general data you can use some tasks to create the variable on the machine such as below with the set fact to make a variable with the contents of a password

you could have some tasks within the playbook to in this case set a password

name: Setup password
set_fact: root_db_server_pwd={{lookup(‘password’, ‘/dev/null chars=ascii_letters,digits,hexdigits length=10’)}}

You could also run some commands and register the output of those commands to be used later.

Could you be a little more specific on what you are trying to accomplish?