Skip to content

Commit

Permalink
Don't install on RedHat 6 and older.
Browse files Browse the repository at this point in the history
  • Loading branch information
deekayen authored Jan 5, 2022
1 parent 7ef6adb commit 03b49d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
---

- name: Validate OS version requirements.
assert:
that:
- ansible_distribution_major_version > "6"
fail_msg: "Only RedHat 7 and newer are supported."
success_msg: "OS major version supported."
when:
- not uninstall
- ansible_os_family == "RedHat"

- name: apt-get update
apt:
update_cache: yes
Expand Down

0 comments on commit 03b49d4

Please sign in to comment.