blob: 096942930c0be16555003b32bc9b5313105af5ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# sshd ~~ roles/sshd/tasks/main.yml
# Create sshd configuration and restart daemon
---
- name: generate sshd configuration
template:
src: templates/sshd_config.j2
dest: /etc/ssh/sshd_config
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: restart sshd
service:
name: sshd
state: restarted
- name: check ssh connection
wait_for:
port: 22
delay: 1
state: started
|