| 1 | --- |
| 2 | - name: Enable epel-release |
| 3 | # This provides some extra packages, eg. htop, python3-virtualenv |
| 4 | dnf: |
| 5 | name: epel-release |
| 6 | |
| 7 | - name: Enable rocky devel repository |
| 8 | yum_repository: |
| 9 | name: devel |
| 10 | description: "Rocky Linux $releasever - Devel" |
| 11 | mirrorlist: "https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=Devel-$releasever" |
| 12 | enabled: true |
| 13 | gpgcheck: true |
| 14 | when: ansible_distribution == 'Rocky' |
| 15 | |
| 16 | - name: Enable rocky powertools repository |
| 17 | # This provides developer orientated packages, eg. python3-sphinx |
| 18 | when: ansible_distribution == 'Rocky' and ansible_distribution_major_version == '8' |
| 19 | ansible.builtin.yum_repository: |
| 20 | name: Rocky-PowerTools |
| 21 | description: "Rocky Linux $releasever - PowerTools" |
| 22 | mirrorlist: "https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever" |
| 23 | enabled: true |
| 24 | gpgcheck: true |
| 25 | |
| 26 | - name: Ensure common packages are installed. |
| 27 | dnf: |
| 28 | name: "{{ common_packages }}" |
| 29 | state: installed |
| 30 | install_weak_deps: false |