blob: 341a96da1503875d35a40d9de3dfcf573f5ec6d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
- name: Install OpenSSH server
apt: pkg={{ packages }}
vars:
packages:
- openssh-server
- name: Create system group 'ssh-login'
group: name=ssh-login system=true
- name: Copy sshd_config configuration
copy: src=etc/ssh/sshd_config.d/local.conf
dest=/etc/ssh/sshd_config.d/local.conf
owner=root group=root
mode=0644
notify:
- Restart OpenSSH
- name: Start Openssh
service: name=ssh enabled=true state=started
|