I don't think it's possible to reliably get that information if you
don't access the VM itself.
The closest thing is the AMI id, from which you can peel some more
information using ec2_ami_facts.
But it's all guestimation.
However, if you use a limited set of (possibly self generated) AMIs,
then you can declare which is which.
If you are able to access the hosts, and need reliable info, then go
that route I'd say.
Also, *IF* you go this route, I'd suggest to not manually parse
/etc/redhat-release to determine release/distros/versions, but use the
existing ansible logic from the setup module.
On Wed, 22 May 2019 at 14:56, Adam <[EMAIL PROTECTED]> wrote:
Trust & Identity Service Operations Manager
To post to this group, send email to [EMAIL PROTECTED].