feat: Create role
This commit is contained in:
22
tasks/main.yml
Normal file
22
tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# tasks file for ssh
|
||||
|
||||
- name: Deploy security conf
|
||||
ansible.builtin.template:
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
src: security.conf.j2
|
||||
dest: /etc/ssh/sshd_config.d/security.conf
|
||||
become: true
|
||||
notify: Restart ssh.service
|
||||
|
||||
- name: Deploy port conf
|
||||
ansible.builtin.template:
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
src: port.conf.j2
|
||||
dest: /etc/ssh/sshd_config.d/port.conf
|
||||
become: true
|
||||
notify: Restart ssh.service
|
Reference in New Issue
Block a user