geerlingguy / ansible-role-clamav

Ansible Role - ClamAV.
https://galaxy.ansible.com/geerlingguy/clamav/
MIT License
60 stars 51 forks source link

Adding epel-release package for Redhat distros #15

Closed pfuntner closed 3 years ago

pfuntner commented 3 years ago

I had errors using the role on CentOS 8, etc:

TASK [ansible-role-clamav : Ensure ClamAV packages are installed.] **************************************************************************************************************************************************************************
Thursday 14 January 2021  12:44:42 -0500 (0:00:00.048)       0:00:02.104 ******
failed: [aws-centos8] (item=clamav) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package clamav available."], "item": "clamav", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
failed: [aws-centos8] (item=clamav-update) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package clamav-update available."], "item": "clamav-update", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
failed: [aws-centos8] (item=clamav-scanner-systemd) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package clamav-scanner-systemd available."], "item": "clamav-scanner-systemd", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
failed: [aws-centos7] (item=clamav) => {"ansible_loop_var": "item", "changed": false, "item": "clamav", "msg": "No package matching 'clamav' found available, installed or updated", "rc": 126, "results": ["No package matching 'clamav' found available, installed or updated"]}
failed: [aws-centos7] (item=clamav-update) => {"ansible_loop_var": "item", "changed": false, "item": "clamav-update", "msg": "No package matching 'clamav-update' found available, installed or updated", "rc": 126, "results": ["No package matching 'clamav-update' found available, installed or updated"]}
failed: [aws-centos7] (item=clamav-scanner-systemd) => {"ansible_loop_var": "item", "changed": false, "item": "clamav-scanner-systemd", "msg": "No package matching 'clamav-scanner-systemd' found available, installed or updated", "rc": 126, "results": ["No package matching 'clamav-scanner-systemd' found available, installed or updated"]}

The installation instructions for RHEL and CentOS say that the epel-release package is required. I was able to install on CentOS 7 and 8 after adding that package to the list of packages for Redhat.

pfuntner commented 3 years ago

This only seems to improve a few CentOS distros but I think it could be a useful change.

pfuntner commented 3 years ago

This PR is no longer of much need to my team and I. I had various issues with distros even after my changes and had better luck building ClamAV from scratch using the source code.

stale[bot] commented 3 years ago

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] commented 3 years ago

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.