Template tasks based on OS version...

Hi Folks,

I’m busy converting some puppet modules to ansible… and I’m trying to figure out how best to lay down some files based on the host os version… I’m trying to lay down one set of files if os_version x… another set of files if os_version y… etc.

I don’t see how in the template or file modules to do something simple like this…

Anyone can clue me in on proper technique for this?

Thanks!

Andy

Using ansible facts and when in the play. have done this before. Am on my phone so can send you an example later.

Okay, yeah… I reasoned this out. I was making it harder than required.