init
This commit is contained in:
		
							
								
								
									
										14
									
								
								roles/ufw/tasks/main.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								roles/ufw/tasks/main.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
- name: Install UFW
 | 
			
		||||
  ansible.builtin.apt:
 | 
			
		||||
    name: ufw
 | 
			
		||||
    state: latest
 | 
			
		||||
    update_cache: yes
 | 
			
		||||
 | 
			
		||||
- name: Allow SSH
 | 
			
		||||
  community.general.ufw:
 | 
			
		||||
    rule: allow
 | 
			
		||||
    name: OpenSSH
 | 
			
		||||
 | 
			
		||||
- name: Enable Firewall
 | 
			
		||||
  community.general.ufw:
 | 
			
		||||
    state: enabled
 | 
			
		||||
		Reference in New Issue
	
	Block a user