Is there a way to detect what OS ansible is being run on and to use that information in the condiational for a local_action task?
In particular, I need create a temporary directory on the local machine to fetch a local file into. I’d like to use mktemp, but it behaves differently on Mac OSX vs linux. I’d like one version of the localaction task that runs on Mac’s and another for linux.