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:
|
2023-06-08 23:51:39 +02:00
|
|
|
- { 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
|