best practice for testing app with many versions

20 views
Skip to first unread message

Netanel Maman

unread,
Dec 2, 2014, 4:37:37 PM12/2/14
to ansible...@googlegroups.com
Hello, maybe you can help me with little query.

I have virtual lab based on vagrant and ansible.

All vms should be with same app installed but with different version number. 

What's the correct way to configure ansible to install a range of versions and keep vagrant know this version (for understable host name)?

Since I can't pass args per host, how ansible can know which version needed?

The only way I found is to extract version from hostname with regex.

Do you have a better solution?

net
  

Brian Coca

unread,
Dec 2, 2014, 6:35:52 PM12/2/14
to ansible...@googlegroups.com
I don't know about vargrant, but there should be no issues in setting
a variable per host with the version using set_fact.

--
Brian Coca

Netanel Maman

unread,
Dec 15, 2014, 3:04:57 AM12/15/14
to ansible...@googlegroups.com
Thanks, I missed that..
Reply all
Reply to author
Forward
0 new messages