same with_items for multiple tasks

36 views
Skip to first unread message

Suporter

unread,
Mar 28, 2017, 12:49:10 PM3/28/17
to Ansible Project
How can we create one with_items and use it for multiple tasks

Kai Stian Olstad

unread,
Mar 28, 2017, 3:24:30 PM3/28/17
to ansible...@googlegroups.com
On 28. mars 2017 18:49, Suporter wrote:
> How can we create one with_items and use it for multiple tasks

Then you need to put the tasks in a yaml file and use include and
with_items.

--
Kai Stian Olstad

Balu Kompalli

unread,
Mar 28, 2017, 5:40:57 PM3/28/17
to Ansible Project, ansible-pr...@olstad.com
Hello  Kai Stian Olstad,

 My best greeting to you.

I want to create 8 instances with 8 different names to ec2 instances. Is it possible in with_items in a single playbook.yml?

Please give suggested links or example playbooks.

Thank you.
 
Reply all
Reply to author
Forward
0 new messages