This repository has been archived on 2023-04-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
max/ansible/roles/ssh/tasks/main.yml

16 lines
382 B
YAML

- name: Copy sshd config
copy:
src: "{{ role_path }}/files/sshd_config"
dest: /etc/ssh/sshd_config
register: sshd_config
- name: Copy ssh config
copy:
src: "{{ role_path }}/files/ssh_config"
dest: /etc/ssh/ssh_config
register: ssh_config
- name: Restart SSH service
systemd:
enabled: true
name: sshd
state: reloaded
when: sshd_config.changed