diff --git a/tasks/rhel7stig/sshd.yml b/tasks/rhel7stig/sshd.yml index c48ad361..7ee4bad8 100644 --- a/tasks/rhel7stig/sshd.yml +++ b/tasks/rhel7stig/sshd.yml @@ -74,10 +74,9 @@ - RHEL-07-040670 - RHEL-07-040680 -- name: Ensure sshd is running and enabled +- name: Ensure sshd is enabled at boot time service: name: "{{ ssh_service }}" - state: started enabled: yes when: - security_enable_sshd | bool