File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7070
7171 - name : Update sshd configuration options from vars
7272 ansible.builtin.set_fact :
73- _edpm_sshd_server_options : |-
74- {% set _ = edpm_sshd_server_options.__setitem__('PasswordAuthentication', edpm_sshd_password_authentication) %}
75- {% if edpm_sshd_banner_enabled %}
76- {% set _ = edpm_sshd_server_options.__setitem__('Banner', '/etc/issue') %}
77- {% endif %}
78- {{ edpm_sshd_server_options }}
73+ _edpm_sshd_server_options : >-
74+ {{ edpm_sshd_server_options |
75+ combine({'PasswordAuthentication': edpm_sshd_password_authentication}) |
76+ combine({'Banner': '/etc/issue'} if edpm_sshd_banner_enabled else {}) }}
7977
8078 - name : Adjust ssh server configuration
8179 become : true
8785 register : sshd_config_result
8886
8987 - name : Reload sshd due to config change
88+ become : true
9089 ansible.builtin.systemd :
9190 name : sshd
9291 state : reloaded
You can’t perform that action at this time.
0 commit comments