16 lines
276 B
YAML
16 lines
276 B
YAML
---
|
|
- name: install openssh
|
|
yum:
|
|
name: openssh
|
|
state: present
|
|
|
|
- name: configure sshd
|
|
template:
|
|
src: sshd_config.j2
|
|
dest: /etc/ssh/sshd_config
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
validate: '/usr/sbin/sshd -t -f %s'
|
|
notify:
|
|
- restart sshd |