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:
|
2024-07-14 22:16:35 +02:00
|
|
|
- { src: 'port.conf', 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
|