Only enable ssh, not start

There is an unusual issue occurring when the ssh daemon is asked to
start when it is already running. This patch ensures that the ssh
daemon is running but it doesn't try to start it. The handler will
take care of restarting sshd later on in the role.

Change-Id: I544cb4bffe7e41d0614ebea6a47c91e617647866
This commit is contained in:
Major Hayden 2017-02-17 09:49:38 -06:00
parent 65d2ec1886
commit 2e5fe3b038
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -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