17 lines
274 B
YAML
17 lines
274 B
YAML
|
- name: Install firewalld
|
||
|
apt:
|
||
|
pkg:
|
||
|
- firewalld
|
||
|
state: latest
|
||
|
update_cache: true
|
||
|
- name: Allow SSH
|
||
|
firewalld:
|
||
|
service: ssh
|
||
|
permanent: yes
|
||
|
state: enabled
|
||
|
- name: Start firewalld
|
||
|
systemd:
|
||
|
enabled: true
|
||
|
name: sshd
|
||
|
state: started
|