Merge branch 'openssh' into 'newinfra'
Openssh See merge request nounous/ansible!58certbot_on_virtu
						commit
						2527390703
					
				| 
						 | 
				
			
			@ -46,3 +46,7 @@
 | 
			
		|||
  roles:
 | 
			
		||||
    - ldap-client
 | 
			
		||||
    - home-nounous
 | 
			
		||||
 | 
			
		||||
- hosts: server
 | 
			
		||||
  roles:
 | 
			
		||||
    - openssh
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,8 +2,8 @@
 | 
			
		|||
- name: Filter SSH on groups
 | 
			
		||||
  lineinfile:
 | 
			
		||||
    dest: /etc/ssh/sshd_config
 | 
			
		||||
    regexp: ^AllowGroups
 | 
			
		||||
    line: "AllowGroups {{ ssh_allow_groups }}"
 | 
			
		||||
    regexp: ^#?PermitRootLogin
 | 
			
		||||
    line: "PermitRootLogin yes"
 | 
			
		||||
    state: present
 | 
			
		||||
  notify: Restart sshd service
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue