geerlingguy / ansible-role-security

Ansible Role - Security

Home Page:https://galaxy.ansible.com/geerlingguy/security/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install fail2ban: "Could not find aptitude. Using apt-get instead"

joelstein opened this issue · comments

Hi Jeff! :)

I'm getting an annoying ansible warning with this role when it tries to install fail2ban:

[WARNING]: Could not find aptitude. Using apt-get instead

There's an easy workaround I use in my playbooks to avoid this by setting force_apt_get: yes.

Would you be open to adding a setting to this ansible role which lets us configure this? I'm honestly not sure what the best solution is.

This was fixed in ansible/ansible#56832 — should've never been a warning :)

Thanks friend!