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:
parent
7ccf827792
commit
ad2647b380
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue