mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
- Docker role: replace docker-compose with docker-compose-plugin (v2). The old docker-compose package conflicts with docker-compose-plugin already installed on helsinki-a. Also removes the conflicting package if present. - firewall_alpine handler: use ansible.builtin.shell instead of ansible.builtin.command for iptables-restore, since the redirect operator (<) requires a shell.
9 lines
212 B
YAML
9 lines
212 B
YAML
---
|
|
- name: Restore iptables
|
|
ansible.builtin.shell: iptables-restore < /etc/iptables/rules-save
|
|
changed_when: true
|
|
|
|
- name: Restart fail2ban
|
|
ansible.builtin.service:
|
|
name: fail2ban
|
|
state: restarted
|