linux_ws2122_ansible/roles/sshd/tasks/main.yml

16 lines
276 B
YAML
Raw Normal View History

2021-12-11 21:46:32 +00:00
---
- 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