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