Skip to content

Commit

Permalink
support redhat family (#127)
Browse files Browse the repository at this point in the history
Changes:

- Tasks in `provision` role are loaded based on
`ansible_distribution_major_version` to enable use of other RedHat
family OSes like AlmaLinux.
  • Loading branch information
drmatthews authored Jul 18, 2024
1 parent 27fd4bd commit b3bfedd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion roles/provision/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
when: external_storage_drive is defined

- name: Set up for specific distribution
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
ansible.builtin.include_tasks:
RedHat{{ ansible_distribution_major_version }}.yml

- name: Upgrade all packages # noqa: package-latest
ansible.builtin.yum:
Expand Down

0 comments on commit b3bfedd

Please sign in to comment.