From 19fb397235eba5db857b79663224c6909be2a0cc Mon Sep 17 00:00:00 2001 From: Hannes Braun <hannes.braun@slub-dresden.de> Date: Thu, 16 Mar 2023 14:48:56 +0100 Subject: [PATCH] Changed from file to copy module --- tasks/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 4cf826f..9d9b3b0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,10 @@ --- - 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 -- GitLab