change directory structure
This commit is contained in:
parent
b89713643d
commit
9eb52229f1
83 changed files with 0 additions and 0 deletions
16
ansible/roles/ssh/tasks/main.yml
Normal file
16
ansible/roles/ssh/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
- 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
|
Reference in a new issue