On 12/11/19 3:33 PM, Rahul Kumar wrote:
> Hi Ansible Gurus,
> How can I optimize below code ? below is the sufficient code to understand 
> the problem...

The code doesn't tell me anything what your objectives are and which tasks you 
are actually
running.

There is no point in optimizing code when it might be wrong in the first place.

Regards
        Racke

> 
> - name:  Application item1Conf provisioning  
>   include_tasks: resturlcall.yml
>   with_items:
>     - { name: '{{item1Conf}}', resource: 'item1' }
>   when: item1Conf is defined
> 
> - name: Application item2Conf provisioning
>   include_tasks: resturlcall.yml
>   with_items:
>     - { name: '{{item2Conf}}', resource: 'item2' }
>   when: item2Conf is defined
> 
> - name: Application item3Conf provisioning  
>   include_tasks: resturlcall.yml
>   with_items:
>     - { name: '{{item3Conf}}', resource: 'item3' }
>   when: item3Conf is defined
> 
> Regards
> Rahul
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEy6yh4hbRRnitfRWsp7gs7vYKxtDiv98NazfZ6MQc9F2Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEy6yh4hbRRnitfRWsp7gs7vYKxtDiv98NazfZ6MQc9F2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7c5e1930-bb12-92e6-4928-08b3a646a10b%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to