diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-04 12:59:39 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-04 13:42:18 +0100 |
commit | 6691410f945719e62601c3d69d9b2ff9c4cfb4fb (patch) | |
tree | 9ea4170a6d5d50ac14a326f42fa8b13303734241 /tasks/ssh.yml | |
parent | 609574f51c5c08af71419bddc1be16ad5668882a (diff) |
Base system.
Diffstat (limited to 'tasks/ssh.yml')
-rw-r--r-- | tasks/ssh.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tasks/ssh.yml b/tasks/ssh.yml new file mode 100644 index 0000000..341a96d --- /dev/null +++ b/tasks/ssh.yml @@ -0,0 +1,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 |