Hi Ansible Gurus,
How can I optimize below code ? below is the sufficient code to understand
the problem...

- 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGH8rEy6yh4hbRRnitfRWsp7gs7vYKxtDiv98NazfZ6MQc9F2Q%40mail.gmail.com.

Reply via email to