linux_ws2122_ansible/roles/sshd/tasks/main.yml
2021-12-11 22:46:32 +01:00

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