chore: rename ‹ssh› group of roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
f8adf14aff
commit
0135bcd48f
15 changed files with 21 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
sshd_port: 22
|
ssh_server_port: 22
|
||||||
sshd_sign_host_keys: false
|
ssh_server_sign_host_keys: false
|
||||||
sshd_auth_password_authentication: "yes"
|
ssh_server_auth_password_authentication: "yes"
|
||||||
|
|
||||||
flatpak_apps:
|
flatpak_apps:
|
||||||
- "com.chatterino.chatterino/{{ ansible_architecture }}/stable"
|
- "com.chatterino.chatterino/{{ ansible_architecture }}/stable"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
system_sshd_port: 22022
|
ssh_server_port: 22022
|
||||||
|
|
||||||
certbot_domains:
|
certbot_domains:
|
||||||
- mountainside.mfocko.xyz
|
- mountainside.mfocko.xyz
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
tags: podman
|
tags: podman
|
||||||
|
|
||||||
# Install and configure SSH server
|
# Install and configure SSH server
|
||||||
- role: sshd
|
- role: ssh_server
|
||||||
become: true
|
become: true
|
||||||
tags: sshd
|
tags: sshd
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
tags: git
|
tags: git
|
||||||
|
|
||||||
# Configure ssh
|
# Configure ssh
|
||||||
- role: ssh
|
- role: ssh_client
|
||||||
tags: ssh
|
tags: ssh
|
||||||
|
|
||||||
# Set up GPG
|
# Set up GPG
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
# Whether to accept password auth; ‹yes› or ‹no›
|
# Whether to accept password auth; ‹yes› or ‹no›
|
||||||
sshd_auth_password_authentication: "no"
|
ssh_server_auth_password_authentication: "no"
|
||||||
|
|
||||||
# Whether to allow ‹root› login; ‹yes› or ‹no›
|
# Whether to allow ‹root› login; ‹yes› or ‹no›
|
||||||
sshd_auth_permit_root_login: "no"
|
ssh_server_auth_permit_root_login: "no"
|
||||||
|
|
||||||
# Whether to setup trusted CA (against the HashiCorp Vault instance)
|
# Whether to setup trusted CA (against the HashiCorp Vault instance)
|
||||||
sshd_auth_trusted_ca: true
|
ssh_server_auth_trusted_ca: true
|
||||||
|
|
||||||
# Default port where the SSH daemon runs; also adjusts the SELinux policy
|
# Default port where the SSH daemon runs; also adjusts the SELinux policy
|
||||||
sshd_port: 10022
|
ssh_server_port: 10022
|
||||||
|
|
||||||
# [TODO]: Whether to sign the host keys (against the HashiCorp Vault instance)
|
# [TODO]: Whether to sign the host keys (against the HashiCorp Vault instance)
|
||||||
sshd_sign_host_keys: true
|
ssh_server_sign_host_keys: true
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
- name: Notify SELinux about new port
|
- name: Notify SELinux about new port
|
||||||
community.general.seport:
|
community.general.seport:
|
||||||
ports: "{{ sshd_port }}"
|
ports: "{{ ssh_server_port }}"
|
||||||
proto: "tcp"
|
proto: "tcp"
|
||||||
setype: "ssh_port_t"
|
setype: "ssh_port_t"
|
||||||
state: "present"
|
state: "present"
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
- name: Enable the new SSH port on firewall
|
- name: Enable the new SSH port on firewall
|
||||||
ansible.posix.firewalld:
|
ansible.posix.firewalld:
|
||||||
port: "{{ sshd_port }}/tcp"
|
port: "{{ ssh_server_port }}/tcp"
|
||||||
immediate: true
|
immediate: true
|
||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
8
roles/ssh_server/templates/10-harden.conf
Normal file
8
roles/ssh_server/templates/10-harden.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
# Port
|
||||||
|
Port {{ ssh_server_port }}
|
||||||
|
|
||||||
|
# Auth
|
||||||
|
PermitRootLogin {{ ssh_server_auth_permit_root_login }}
|
||||||
|
PasswordAuthentication {{ ssh_server_auth_password_authentication }}
|
|
@ -1,8 +0,0 @@
|
||||||
# {{ ansible_managed }}
|
|
||||||
|
|
||||||
# Port
|
|
||||||
Port {{ sshd_port }}
|
|
||||||
|
|
||||||
# Auth
|
|
||||||
PermitRootLogin {{ sshd_auth_permit_root_login }}
|
|
||||||
PasswordAuthentication {{ sshd_auth_password_authentication }}
|
|
Loading…
Reference in a new issue