skip to Main Content

Can Nginx & ansible-playbook use jinja2 for hosts?

ansible-playbook hosts can not use jinja2 for matching more hosts when i need to install more same service in one host in test env, i write a group like this [nginx] demo-region-nginx-1:22 ansible_ssh_host=10.0.0.1 port=80 demo-region-nginx-2:22 ansible_ssh_host=10.0.0.1 port=81 demo-region-nginx-3:22 ansible_ssh_host=10.0.0.1 port=82…

VIEW QUESTION

Filter JSON field from file

I have a JSON file with some data on it, like the below one: { "84d0da32-c945-9844-86cc-4b4bd6100dc5": { "UUID": "84d0da32-c945-9844-86cc-4b4bd6100dc5", "GroupName": "TEST1", "EntryTitle": "host1", "Username": "sys", "NewPassword": "@PVmkiajauauajjhfz-5/NN" }, "test": { "UUID": "5c3c162f-0a80-f949-85a0-afcf9aedb6c8", "GroupName": "TEST2", "EntryTitle": "host2", "Username": "sys", "NewPassword": "H7-uPz2mkaaua@ki7q?NSs?"…

VIEW QUESTION
Back To Top
Search