Hi all,
please help me.

Build ec2 instances with attaching multiple tags names :-
  For example- I have launched one ec2 instance with tag name "websever1"
the next builds of ec2 instances should start with tag name webserver2 ,
webserver3 .... automatically.


Note: No two ec2 instances have same tag name.

On Fri, Aug 24, 2018 at 2:04 AM Kai Stian Olstad <
[email protected]> wrote:

> On Thursday, 23 August 2018 21.37.34 CEST MPb wrote:
> >
> > I have a process that is exporting xml config from an application and
> the
> > exported xml config contains the server name of the server it was
> exported
> > from.
> > A grep contains would contain a list of these:
> > ./config_1.xml:  <ns:serverName>myservername.dom.com</ns:serverName>
> > ./config_2.xml:  <ns:serverName>myservername.dom.com</ns:serverName>
> >
> > I want to make them via an ansible task:
> > ./config_1.xml:  <ns:serverName>{{ gold_server_conf }}</ns:serverName>
> > ./config_2.xml:  <ns:serverName>{{ gold_server_conf }}</ns:serverName>
> >
> > Something like this?? is wrong because Ansible will just think {{
> > gold_server_conf }} is a variable.. but i want it to treat it just as
> text
> >
> >  - name: template out the server name
> >    shell:
> >       sed -i 's/{{ ansible_hostname }}/{{ gold_server_conf }}/g' *
>
> When in doubt try escaping :-)
>
>   - name: template out the server name
>     shell:
>       sed -i 's/{{ ansible_hostname }}/\{\{ gold_server_conf \}\}/g' *
>
>
> --
> Kai Stian Olstad
>
>
> --
> 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/59049370.PlloyxnlTo%40x1
> .
> 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/CANP%3DzZy%2BnGdpXKF9p%2BncOLQT6b6_%3DLX43_MzRDcfvOApT0KVKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to