[GH-ISSUE #623] Ansible playbook does not build on Fedora #1727

Closed
opened 2026-03-01 18:35:51 +03:00 by kerem · 2 comments
Owner

Originally created by @rwaltr on GitHub (May 2, 2020).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/623

Describe the bug
The Ansible playbook generate_disks_base attempts to install EPEL on all Redhat OS family distributions, Fedora Linux and Fedora containers reports on Ansible that they are "Redhat" on ansible_os_family, Because Fedora does not include the EPEL repository and matches the contitions for task "Ensure EPEL is enabled", This playbook will fail.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Fedora container, One quick way of doing so is [podman/docker] run --rm -it fedora
  2. Clone the Netboot repo and install ansible, git, and httpd
  3. Run the playbook using `ansible-playbook

Screenshot

TASK [netbootxyz : Ensure EPEL is enabled] *************************************
fatal: [localhost]: FAILED! => {"changed": false, "failures": ["epel-release No match for argument: epel-release"], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}

Expected behavior
EPEL would be skipped on Fedora Linux

Additional context
The variable ansible_distribution will show "Fedora" "CentOS" and would be more reliable

I'm currently looking at a workaround now

Originally created by @rwaltr on GitHub (May 2, 2020). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/623 **Describe the bug** The Ansible playbook `generate_disks_base` attempts to install EPEL on all Redhat OS family distributions, Fedora Linux and Fedora containers reports on Ansible that they are "Redhat" on ansible_os_family, Because Fedora does not include the EPEL repository and matches the contitions for task "Ensure EPEL is enabled", This playbook will fail. **To Reproduce** Steps to reproduce the behavior: 1. Create a Fedora container, One quick way of doing so is ``[podman/docker] run --rm -it fedora`` 1. Clone the Netboot repo and install ansible, git, and httpd 1. Run the playbook using `ansible-playbook **Screenshot** ```ansible TASK [netbootxyz : Ensure EPEL is enabled] ************************************* fatal: [localhost]: FAILED! => {"changed": false, "failures": ["epel-release No match for argument: epel-release"], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []} ```` **Expected behavior** EPEL would be skipped on Fedora Linux **Additional context** The variable `ansible_distribution` will show `"Fedora"` `"CentOS"` and would be more reliable I'm currently looking at a workaround now
kerem closed this issue 2026-03-01 18:35:51 +03:00
Author
Owner

@rwaltr commented on GitHub (May 3, 2020):

I have created pull #625 to resolve this

<!-- gh-comment-id:623033108 --> @rwaltr commented on GitHub (May 3, 2020): I have created pull #625 to resolve this
Author
Owner

@antonym commented on GitHub (May 3, 2020):

Thanks, this has been merged.

<!-- gh-comment-id:623046745 --> @antonym commented on GitHub (May 3, 2020): Thanks, this has been merged.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#1727
No description provided.