23 lines
475 B
YAML
23 lines
475 B
YAML
---
|
|
# 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
|