ssh: explicitly enable or disable the service at boot (#771)
Signed-off-by: Sevan Murriguian-Watrin <[email protected]>
This commit is contained in:
1 parent
19ca997bd6
commit
b0488e86d4
2 files changed
+9
-1
No files matched your search
@@ -144,3 +144,8 @@
|
||||
when:
|
||||
- sshd_disable_crypto_policy | bool
|
||||
- ('crypto-policies' in ansible_facts.packages)
|
||||
|
||||
- name: Enable or disable sshd service
|
||||
ansible.builtin.service:
|
||||
name: "{{ sshd_service_name }}"
|
||||
enabled: "{{ ssh_server_service_enabled }}"
|
||||
Reference in new issue
Block a user