File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,12 @@ network_ipv6_enable: true # sshd + ssh
66ssh_client_config_file : /etc/ssh/ssh_config # ssh
77ssh_server_config_file : /etc/ssh/sshd_config # sshd
88
9- # true if sshd should be started and enabled
9+ # true if sshd should be started
1010ssh_server_enabled : true # sshd
1111
12+ # true if sshd should be enabled at boot
13+ ssh_server_service_enabled : true # sshd
14+
1215# true if DNS resolutions are needed, look up the remote host name,
1316# defaults to false from 6.8, see: http://www.openssh.com/txt/release-6.8
1417ssh_use_dns : false # sshd
Original file line number Diff line number Diff line change 144144 when :
145145 - sshd_disable_crypto_policy | bool
146146 - ('crypto-policies' in ansible_facts.packages)
147+
148+ - name : Enable or disable sshd service
149+ ansible.builtin.service :
150+ name : " {{ sshd_service_name }}"
151+ enabled : " {{ ssh_server_service_enabled }}"
You can’t perform that action at this time.
0 commit comments