$ ansible-playbook -e variable=value

> On Oct 12, 2021, at 04:56, 'Tony' via Ansible Project 
> <ansible-project@googlegroups.com> wrote:
> 
> Hi,
> 
> I am trying to use an ansible variable in my AWS cloudformation template, see 
> below red where I am trying to use the variable from Ansible.
> 
> Parameters:
> 
>     Environment:
>         Description: 'Environment definition.'
>         Type: 'String'
>         Default: 'Dev'
> 
> Resources:
> 
>     VPC:
>         Type: 'AWS::EC2::VPC'
>         Properties:
>             CidrBlock:
>                  "{{ ansible variable here }}"
>             EnableDnsSupport: true
>             EnableDnsHostnames: true
>             InstanceTenancy: 'default'
>             Tags:
>                 - Key: 'Environment'
>                   Value:
>                       Ref: 'Environment'
> 
> Does anyone know how to pass this on to Ansible?
> 
> Thank you!
> 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com 
> <mailto:ansible-project+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/faae7897-90bd-41c0-9966-a5e459e80686n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-project/faae7897-90bd-41c0-9966-a5e459e80686n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9F6AC9EB-F469-4F35-9D7A-1A3B89507EF0%40gmail.com.

Reply via email to