diff --git a/roles/native-sshd/templates/sshd_config b/roles/native-sshd/files/sshd_config similarity index 100% rename from roles/native-sshd/templates/sshd_config rename to roles/native-sshd/files/sshd_config diff --git a/roles/native-sshd/tasks/main.yml b/roles/native-sshd/tasks/main.yml index bdd6bdb8..49c14b8f 100644 --- a/roles/native-sshd/tasks/main.yml +++ b/roles/native-sshd/tasks/main.yml @@ -1,3 +1,6 @@ -- name: configuring ssh - template: src=sshd_config dest=/etc/ssh/ +- name: create sshd_config + copy: + src: sshd_config + dest: /etc/ssh/sshd_config + backup: yes notify: sshd restart diff --git a/roles/native-sudo/tasks/main.yml b/roles/native-sudo/tasks/main.yml index b8f235c1..73655c6c 100644 --- a/roles/native-sudo/tasks/main.yml +++ b/roles/native-sudo/tasks/main.yml @@ -8,3 +8,4 @@ mode: "0440" owner: root group: root + backup: yes