summaryrefslogtreecommitdiff
path: root/common/tasks/ssh.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'common/tasks/ssh.yaml')
-rw-r--r--common/tasks/ssh.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/tasks/ssh.yaml b/common/tasks/ssh.yaml
new file mode 100644
index 0000000..6adc5d3
--- /dev/null
+++ b/common/tasks/ssh.yaml
@@ -0,0 +1,14 @@
+- name: Copy sshd configuration
+ copy:
+ src: sshd_config
+ dest: /etc/ssh/sshd_config
+ owner: root
+ group: root
+ mode: u=rw,g=r,o=r
+ notify:
+ - reload sshd
+- name: Enable and start sshd
+ service:
+ name: sshd
+ enabled: yes
+ state: started