Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ansible/requirements/ansible-galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
roles:
- src: willshersystems.sshd
version: v0.25.0
- src: nginxinc.nginx
version: 0.24.3
- src: geerlingguy.certbot
Expand All @@ -18,4 +16,4 @@ roles:
version: 7.4.7
collections:
- name: community.docker # manages containers
version: 4.6.1
version: 4.6.1
16 changes: 8 additions & 8 deletions ansible/roles/ssh_users/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@
mode: 0400
with_items: "{{ admin_usernames | union(non_admin_usernames) }}"

- name: configure sshd
- name: configure sshd_config
tags: ssh_users
include_role:
name: willshersystems.sshd
vars:
sshd_skip_defaults: false
sshd:
AllowUsers: "{{ admin_usernames | union(non_admin_usernames) | sort | join(' ') }}"
template:
src: sshd_config
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: 0440

- name: Enesure sudoers dir exists
- name: Ensure sudoers dir exists
tags: ssh_users
ansible.builtin.file:
path: /etc/sudoers.d
Expand Down
Empty file.
12 changes: 12 additions & 0 deletions ansible/roles/ssh_users/templates/sshd_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Include /etc/ssh/sshd_config.d/*.conf
AllowUsers {{ admin_usernames | union(non_admin_usernames) | sort | join(' ') }}
PasswordAuthentication No
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Ciphers chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
KexAlgorithms mlkem768x25519-sha256,curve25519-sha256
MACs hmac-sha2-512,hmac-sha2-256
Loading