How do I perform the following with Ansible playbook. I'm new to it. Thanks!
File example that contains the hostname and password
{
"hosts":[
{
"node": "node1",
"pass": "pass1"
},
{
"node": "node2",
"pass": "pass2"
}
]}
I need to put file.txt on each server with their respected values.
Example, On node 1 the file.txt should contain the node name "node1" and password "pass1"