Browse Source

add ubuntu test

main
Markus Bergholz 6 months ago
parent
commit
17f9e4775f
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      ubuntu-test.yml

+ 27
- 0
ubuntu-test.yml View File

@ -0,0 +1,27 @@
---
- hosts: all
become: yes
vars:
# vars for ssh-hardening
########################
ssh_allow_users: "{{ USER }}"
ssh_allow_tcp_forwarding: no
ssh_max_sessions: 2
ssh_client_alive_count: 2
ssh_print_last_log: True
sshd_custom_options:
- "TrustedUserCAKeys /etc/ssh/id_ecdsa_sk.pub"
ssh_kex:
- curve25519-sha256@libssh.org
- diffie-hellman-group-exchange-sha256
ssh_macs:
- hmac-sha2-512-etm@openssh.com
- hmac-sha2-256-etm@openssh.com
- umac-128-etm@openssh.com
ssh_server_ports:
- '2222'
roles:
- ufw
- ssh-hardening
- ansible-os-hardening

Loading…
Cancel
Save