always prep sshd

There isn't any reason not to do this. We still only actually enable the
service when asked to in the config.
This commit is contained in:
Pig Monkey 2016-01-30 16:03:08 -08:00
parent 48912b59db
commit 2e84ecca61

View file

@ -7,11 +7,9 @@
- name: Create OpenSSH systemd unit file directory
file: path=/etc/systemd/system/sshd.socket.d state=directory
when: ssh.enable_sshd == True
- name: Push OpenSSH socket unit file
template: src=sshd-socket-override.conf.j2 dest=/etc/systemd/system/sshd.socket.d/override.conf
when: ssh.enable_sshd == True
- name: Enable and start OpenSSH
service: name=sshd.socket enabled=yes state=started