Sorry that prod / Prod is a typo. I'm basically using same at both places. On Jun 3, 2019 5:38 PM, "Wawrzek Niewodniczanski" <[email protected]> wrote:
> On Tue, 28 May 2019 at 16:31, Saranya N <[email protected]> wrote: > > > > I have different staging environments under inventory. > > > [...] > > Prod/ > > group_vars > > hosts.ini > > > [...] > > When I run my ansible playbook like this it doesn't work. How can I do > this? > > > > ansible-playbook -i inventory/{{ env }}/ -e "env=prod" > > > > Is it 'prod' or 'Prod'? > > I'm not sure if that (having {{ env }} in path) can work. AFAIR you > need a path to the hosts files. Have you tried ansible-playbook -i > inventory/Prod/hosts.ini? > > Wawrzek > -- > Dr Wawrzyniec NiewodniczaĆski or Wawrzek for short > PhD in Quantum Chemistry & MSc in Molecular Engineering > WWW: http://wawrzek.name E-MAIL: [email protected] > Linux User #177124 > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/GcxV5MRlGrg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/CAC7-vpABq7GXHvCjRqZFYeEu8-3ACurLnRefqGtYUigTQiPO-A% > 40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPYop%2BiBkOEA_SMk7zt7EQCG%2B1CNFa4OaZ%3DsROHE9RrKsOQzQg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
