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

14 lines
No EOL
339 B
YAML

---
- 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', dest: '/etc/ssh/sshd_config.d/99-port.conf' }
register: iptables_templates_results
become: yes
# TODO: Reload ssh configuration and reconnect to new port