-
Notifications
You must be signed in to change notification settings - Fork 23.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distribution: Add Amazon Linux distribution facts #73767
Conversation
* Update Amazon Linux Distribution facts gathering logic * Update tests Fixes: ansible#73742 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
have we checked that for previous amazon linux versions a os-release file won't contradict the old pathway? |
Yes, Older version like Amazon Linux 2 and 2 (Karoo) is tested with this change and works fine. I also added tests for these distro. |
Is it possible backport the fix to ansible-2.8 and further? |
Ansible 2.8 is for critical security fixes. We can backport to 2.9 and 2.10. Please see https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html |
Thank you Abhijeet for your help. Yes, please lets back port it to 2.9 and 2.10 if not already done. I can upgrade my ansible to 2.9 and above. Thanks again for your help. |
SUMMARY
Fixes: #73742
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
changelogs/fragments/73742_amazon_distribution.yml
lib/ansible/module_utils/facts/system/distribution.py
test/units/module_utils/facts/system/distribution/fixtures/amazon_linux_2.json
test/units/module_utils/facts/system/distribution/fixtures/amazon_linux_2016.03.json
test/units/module_utils/facts/system/distribution/fixtures/amazon_linux_2018.03.json
test/units/module_utils/facts/system/distribution/fixtures/amazon_linux_2_karoo.json