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 Sun, Aug 26, 2018 at 9:15 AM vinoth kumar <[email protected]> wrote:

>
> On Sun, 26 Aug 2018 at 2:39 AM, Deepak Sharma <[email protected]>
> wrote:
>
>> ---
>> - hosts: all
>>   gather_facts: true
>>   sudo: true
>>   tasks:
>>
>>     - name: capture linux_os
>>       shell: "{{ item }}"
>>       register: prepatch
>>       with_items:
>>         - 'uname -a'
>>         - 'cat /etc/resolv.conf'
>>     - name: create directory
>>       file: path=/tmp/{{petch1}} state=directory
>>
>
>
> What is the error screen.-also petch1 is nowhere mentioned .whatever given
> inside curly braces it taken as variable
>
>>
>>     - name: create backup
>>       copy: {{ prepatch.stdout }}  dest=/tmp/{{petch1}}-prepatch.txt
>>       ignore_errors: True
>>
>> Unable to send to remote server
>>
>> --
>> 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/e625498f-386a-4329-9fb4-db21244b949b%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/e625498f-386a-4329-9fb4-db21244b949b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/CAJ%2BRxtRHTvKad185%2B%3D%3DF4F-bzYepCT7%2BKK_MVALbwfR7nAYVGw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAJ%2BRxtRHTvKad185%2B%3D%3DF4F-bzYepCT7%2BKK_MVALbwfR7nAYVGw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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%3DzZx4oRoRBoVJaC08Gffu8yTZtzgEmzrr%2BfjgCLJJXAU8ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to