Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates
This commit is contained in:
commit
53695f4fff
411 files changed
+7817
No files matched your search
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Install OpenSSH server
|
||||
ansible.builtin.apt:
|
||||
name: openssh-server
|
||||
state: present
|
||||
tags: [ssh]
|
||||
|
||||
- name: Configure sshd hardening
|
||||
ansible.builtin.template:
|
||||
src: nbops-sshd.conf.j2
|
||||
dest: /etc/ssh/sshd_config.d/10-nbops.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
validate: /usr/sbin/sshd -t -f %s
|
||||
notify: restart ssh
|
||||
tags: [ssh, hardening]
|
||||
|
||||
- name: Enable SSH
|
||||
ansible.builtin.service:
|
||||
name: ssh
|
||||
enabled: true
|
||||
state: started
|
||||
tags: [ssh]
|
||||
|
||||
Reference in new issue
Block a user