mirror of https://github.com/ansible/ansible.git
Amazon: Fix distribution facts for older release
Ansible can gather distribution facts for older Amazon Linux with /etc/os-release data. Fixes: #73946 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/73956/head
parent
ad5ee1542a
commit
3811fddede
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- setup - fix distribution facts for Older Amazon Linux with ``/etc/os-release`` (https://github.com/ansible/ansible/issues/73946).
|
@ -0,0 +1,34 @@
|
||||
{
|
||||
"platform.dist": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"input": {
|
||||
"/etc/system-release": "Amazon Linux release 2",
|
||||
"/etc/os-release": ""
|
||||
},
|
||||
"name": "Amazon Linux 2",
|
||||
"result": {
|
||||
"distribution_release": "NA",
|
||||
"distribution": "Amazon",
|
||||
"distribution_major_version": "2",
|
||||
"os_family": "RedHat",
|
||||
"distribution_version": "2"
|
||||
},
|
||||
"distro": {
|
||||
"id": "amzn",
|
||||
"version": "2",
|
||||
"codename": "",
|
||||
"os_release_info": {
|
||||
"name": "Amazon Linux AMI",
|
||||
"ansi_color": "0;33",
|
||||
"id_like": "rhel fedora",
|
||||
"version_id": "2",
|
||||
"pretty_name": "Amazon Linux release 2",
|
||||
"version": "2",
|
||||
"home_url": "",
|
||||
"id": "amzn"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue