Я попытался установить fail2ban с помощью ansible,
Книга воспроизведения выглядит следующим образом.
tasks:
- name: Install the `fail2ban` package
yum:
name: "{{ item }}"
state: latest
with_items:
- fail2ban
- fail2ban-firewalld
- fail2ban-systemd
- name: Make a copy of the jail.conf file and save it with the name jail.local
template:
src: /etc/fail2ban/jail.conf
dest: /etc/fail2ban/jail.local
mode: 0644
owner: root
group: root
notify:
- start fail2ban
ОШИБКА:
(item=[u'fail2ban', u'fail2ban-firewalld', u'fail2ban-systemd']) => {"ansible_loop_var": "item", "changed": false, "failures": [], "item": ["fail2ban", "fail2ban-firewalld", "fail2ban-systemd"], "msg": "Depsolve Error occured: \n Problem 1: package fail2ban-systemd-0.9.7-1.el7.noarch requires fail2ban-server = 0.9.7-1.el7, but none of the providers can be installed\n
Python 2, Установлено 3 репо Epel