It’s also possible to pass each variable using separate -e options: $ ansible-playbook i inventory example_playbook.yml -e firstname=John -e surname=Doe The outputwill be the same as before. 3.2. Using JSON Alternatively, we can pass variables to a playbook the command line using...
":"34.213.178.226","port":9093,"name":"test2"}]}}}' [monitor] 52.40.46.171 ansible_user=ubuntu ansible_become=True private_ip=172.31.17.57 [client] 54.218.124.0 ansible_user=ubuntu ansible_become=True private_ip=172.31.18.19 id=0 Second test was with this host file and command ....