feat: Create role

This commit is contained in:
2022-10-04 15:19:21 +02:00
committed by pulsar89.5
parent d7fd830a52
commit 4d321f490a
7 changed files with 85 additions and 3 deletions

22
tasks/main.yml Normal file
View 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