Subject: [ansible-project] Is there a way to get the OS from AWS?

  Adam 2019-05-22, 12:56
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:

Dick Visser
Trust & Identity Service Operations Manager

To post to this group, send email to [EMAIL PROTECTED].
  Adam 2019-05-22, 13:50
  Kashish Sharma 2019-05-22, 14:19
  Adam 2019-05-22, 14:26