source input from a file (exp: package names and versions from an excel or a csv)
18 views
Skip to first unread message
Sagayaraj A
unread,
Jan 21, 2015, 7:23:43 AM1/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
I'm looking for a way to input names of packages (around 100+ packages - actually it's dynamic) and allow ansible to run a playbook against these packages (update or install etc). I can't seem to find anyway except by adding all the filenames into the playbook everytime using variables. Is there a better way to do it?
Regards, Saga
Brian Coca
unread,
Jan 21, 2015, 9:44:08 AM1/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
you could use lookup('file', ...) and/or lookup('csvfile',) either
directly or using with_<lookup plugin>