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 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/CAC7-vpABq7GXHvCjRqZFYeEu8-3ACurLnRefqGtYUigTQiPO-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.