add ufw and mosh roles
This commit is contained in:
parent
39c2b425bd
commit
b8d26d4938
@ -2,6 +2,8 @@
|
||||
hosts: all
|
||||
roles:
|
||||
- users
|
||||
- ufw
|
||||
- mosh
|
||||
- python3
|
||||
- docker
|
||||
- htop
|
||||
|
||||
3
urubamba/roles/mosh/meta/main.yml
Normal file
3
urubamba/roles/mosh/meta/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: ufw
|
||||
10
urubamba/roles/mosh/tasks/main.yml
Normal file
10
urubamba/roles/mosh/tasks/main.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Install mosh
|
||||
ansible.builtin.package:
|
||||
name: mosh
|
||||
state: present
|
||||
- name: Allow mosh in ufw
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: 60000:61000
|
||||
proto: udp
|
||||
12
urubamba/roles/ufw/tasks/main.yml
Normal file
12
urubamba/roles/ufw/tasks/main.yml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Install ufw
|
||||
ansible.builtin.package:
|
||||
name: ufw
|
||||
state: present
|
||||
- name: Allow SSH connection in ufw
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
name: OpenSSH
|
||||
- name: Enable ufw
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
Loading…
x
Reference in New Issue
Block a user