1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update main.yml

This commit is contained in:
A Holt 2019-01-01 21:58:30 -05:00 committed by GitHub
parent 7ccf827792
commit ad2647b380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@
regexp: '^PermitRootLogin'
line: 'PermitRootLogin without-password'
state: present
when: sshd_enabled
#TODO: use handler to reload ssh
- name: Create root .ssh
@ -31,14 +32,14 @@
force: no
when: sshd_enabled
- name: Enable & start sshd
- name: Enable & start ssh daemon
service:
name: "{{ sshd_service }}"
enabled: yes
state: started
when: sshd_enabled
- name: Disable sshd
- name: Disable ssh daemon
service:
name: "{{ sshd_service }}"
enabled: no