public-ansible-bootstrap/bootstrap.yml
2024-03-20 16:31:01 -07:00

18 lines
No EOL
364 B
YAML

---
- name: Setup fail2ban
hosts: all
- name: This command will echo text to a file as a test
ansible.builtin.shell:
cmd: echo 'hello' > /tmp/hello.txt
- name: install fail2ban
ansible.builtin.dnf:
name: fail2ban
state: present
- name: start fail2ban
ansible.builtin.systemd_service:
state: started
enabled: true
name: fail2ban