skip to Main Content

Call variable in Ansible – Nginx

Apologies for this simple question, but I tried various approach without success. This is my vars file --- preprod: name: nginx prod: name: apache I am trying to pass the value of name based on the environment name user provides…

VIEW QUESTION

Weird Ansible issue – CentOS

When I use two consecutive shell tasks with When condition "when: ansible_distribution == 'Amazon' and when: ansible_distribution == 'CentOS'" its fails to register variable(attributes) of first tasks If I disable task with "when: ansible_distribution == 'CentOS'" it works perfectly. here…

VIEW QUESTION
Back To Top
Search