1
0
Fork 0
myserver-configuration/roles/ssh/tasks/base.yml

14 lines
342 B
YAML
Raw Normal View History

2023-05-21 16:03:37 +02:00
---
- name: Copy conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
group: root
mode: u=rwx,g=rx,o=rx
loop:
- { src: 'port.conf.j2', dest: '/etc/ssh/sshd_config.d/99-port.conf' }
2023-05-21 16:03:37 +02:00
register: iptables_templates_results
become: yes
# TODO: Reload ssh configuration and reconnect to new port