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

ERROR! the role Users/xxxx/ansible/roles/basic_install' was not found – Debian

i am running an ansible playbook, but it won't find my defined roles. I get the following error: ERROR! the role 'Users/xxxx/ansible/roles/basic_install' was not found in /Users/xxxx/ansible/playbooks/roles:/Users/xxxx/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/Users/xxxx/ansible/playbooks The error appears to be in '/Users/xxxx/ansible/playbooks/byrule.yml': line 6, column 7, but may…

VIEW QUESTION

Running Ansible using slurm user: how can I fix ansible.legacy.setup failed to execute error? – Ubuntu

TASK [Gathering Facts] ********************************************************* task path: /opt/playbook/site.yml:1 Using module file /usr/local/lib/python3.10/dist-packages/ansible/modules/setup.py Pipelining is enabled. <localhost> ESTABLISH LOCAL CONNECTION FOR USER: slurm <localhost> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mvloemssulwwmnnhtatxivyevcbshjsb ; /usr/bin/python3'"'"' && sleep 0'…

VIEW QUESTION
Back To Top
Search