syntax, syntax
This commit is contained in:
parent
f2eb817346
commit
77dfd76ce2
1 changed files with 18 additions and 16 deletions
|
@ -1,19 +1,21 @@
|
|||
---
|
||||
|
||||
- name: Setup fail2ban
|
||||
hosts: 127.0.0.1
|
||||
connection: local
|
||||
|
||||
- name: This command will echo text to a file as a test
|
||||
ansible.builtin.shell:
|
||||
cmd: echo 'hello' > /tmp/hello.txt
|
||||
- hosts: 127.0.0.1
|
||||
connection: local
|
||||
|
||||
- name: install fail2ban
|
||||
ansible.builtin.dnf:
|
||||
name: fail2ban
|
||||
state: present
|
||||
- name: start fail2ban
|
||||
ansible.builtin.systemd_service:
|
||||
state: started
|
||||
enabled: true
|
||||
name: fail2ban
|
||||
tasks:
|
||||
|
||||
- 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
|
Loading…
Reference in a new issue