You've already forked linux_ws2122_ansible
Initial Commit
This commit is contained in:
16
roles/sshd/tasks/main.yml
Normal file
16
roles/sshd/tasks/main.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user