-
Notifications
You must be signed in to change notification settings - Fork 222
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
Limit the versions of the agent that can be installed on Centos < 7 #556
Conversation
722508c
to
12e5b21
Compare
e110a52
to
f1c1a24
Compare
f1c1a24
to
1f13ef4
Compare
tasks/os-check.yml
Outdated
when: ansible_facts.os_family == "RedHat" | ||
block: | ||
- name: Get RHEL major version equivalent | ||
command: "rpm -E %{rhel}" # noqa: command-instead-of-module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this is interesting, I never thought about doing this. Have you tested on e.g. Scientific Linux 6? I feel like there might be rhel-6 based distros where this macro wouldn't expand, but I'm not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a quick test on a Scientific Linux 6 box and it did expand as expected (to 6). Would you say it's safer to use something else (or at least to have some sort of fallback)?
The approach taken here was: