summaryrefslogtreecommitdiff
path: root/common/tasks/ssh.yaml
blob: 6adc5d379422a5efbfc3a6eca59f66a0b907bb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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