Signed-off-by: Sylvain Prat <[email protected]>
This commit is contained in:
1 parent
1ab33482db
commit
43ec139d24
3 files changed
+12
-2
No files matched your search
@@ -17,6 +17,12 @@ Warning: This role disables root-login on the target server! Please make sure yo
|
||||
- `network_ipv6_enable`
|
||||
- Default: `false`
|
||||
- Description: true if IPv6 is needed. `ssh_listen_to` must also be set to listen to IPv6 addresses (for example `[::]`).
|
||||
- `ssh_client_config_file`
|
||||
- Default: `'/etc/ssh/ssh_config'`
|
||||
- Description: path of the ssh client configuration file, e.g. `/etc/ssh/ssh_config.d/custom.conf`
|
||||
- `ssh_server_config_file`
|
||||
- Default: `'/etc/ssh/sshd_config'`
|
||||
- Description: path of the ssh server configuration file, e.g. `/etc/ssh/sshd_config.d/custom.conf`
|
||||
- `ssh_server_ports`
|
||||
- Default: `['22']`
|
||||
- Description: ports on which ssh-server should listen
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
# true if IPv6 is needed
|
||||
network_ipv6_enable: false # sshd + ssh
|
||||
|
||||
# Paths of the config files
|
||||
ssh_client_config_file: /etc/ssh/ssh_config # ssh
|
||||
ssh_server_config_file: /etc/ssh/sshd_config # sshd
|
||||
|
||||
# true if sshd should be started and enabled
|
||||
ssh_server_enabled: true # sshd
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
- name: create sshd_config and set permissions to root/600
|
||||
template:
|
||||
src: 'opensshd.conf.j2'
|
||||
dest: '/etc/ssh/sshd_config'
|
||||
dest: "{{ ssh_server_config_file }}"
|
||||
mode: '0600'
|
||||
owner: '{{ ssh_owner }}'
|
||||
group: '{{ ssh_group }}'
|
||||
@@ -70,7 +70,7 @@
|
||||
- name: create ssh_config and set permissions to root/644
|
||||
template:
|
||||
src: 'openssh.conf.j2'
|
||||
dest: '/etc/ssh/ssh_config'
|
||||
dest: "{{ ssh_client_config_file }}"
|
||||
mode: '0644'
|
||||
owner: '{{ ssh_owner }}'
|
||||
group: '{{ ssh_group }}'
|
||||
|
||||
Reference in new issue
Block a user