Skip to content

Commit

Permalink
Add fedora37 (#57)
Browse files Browse the repository at this point in the history
* ADD vars/Fedora-37.yml
* tasks/variables.yml: load variables for Fedora (which is also ansible_os_family RedHat, but has a different version number
* update meta and workflows for Fedora37 support
* tasks/install.redhat.yml:install cronie/acl/python3-django on Fedora only
* vars/Fedora-37.yml: use python3.10
  • Loading branch information
Johannes Kastl authored Apr 26, 2023
1 parent fffb3f1 commit 123850d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
# - amazonlinux2
- centos8
- debian11
- fedora37
- rockylinux8
- ubuntu2004
- ubuntu2204
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/netbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- centos8
- debian10
- debian11
- fedora37
- rockylinux8
- ubuntu2004
- ubuntu2204
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Tested on the following platforms:
* CentOS 8
* Debian Buster (up to v3.1.11)
* Debian Bullseye
* Fedora Linux 37
* Rocky Linux 8 / Red Hat Enterprise Linux (RHEL) 8.2+
* Ubuntu 20.04
* Ubuntu 22.04
Expand Down
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ galaxy_info:
- name: EL
versions:
- "8"
- name: Fedora
versions:
- "37"
- name: Ubuntu
versions:
- focal
Expand Down
11 changes: 11 additions & 0 deletions tasks/install.redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
ansible.builtin.include_tasks: install.amazon.yml
when: ansible_distribution == 'Amazon'

- name: install.redhat | install packages missing on Fedora
ansible.builtin.package:
name: "{{ item }}"
state: present
loop:
- acl
- cronie
- python3-django
when:
- ansible_distribution == 'Fedora'

- name: install.redhat | install required system packages
ansible.builtin.yum:
name: "{{ item }}"
Expand Down
6 changes: 6 additions & 0 deletions vars/Fedora-37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
__python_version: "3.10"
__python_packages:
- "python{{ python_version | default(__python_version) | replace('.', '') }}"
- "python3-devel"
- "python3-pip"

0 comments on commit 123850d

Please sign in to comment.