Skip to content
Snippets Groups Projects
Commit 19fb3972 authored by Hannes Braun's avatar Hannes Braun :upside_down:
Browse files

Changed from file to copy module

parent b5cd62cd
No related branches found
No related tags found
No related merge requests found
---
- name: Override existing sshd_config file
ansible.builtin.file:
path: /etc/ssh/sshd_config
ansible.builtin.copy:
src: etc/ssh/sshd_config
mode: 0644
dest: /etc/ssh/sshd_config
mode: 0644 # u=rw,g=r,o=r
owner: root
group: root
notify: sshd-restart
\ No newline at end of file
notify: sshd-restart
become: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment