aboutsummaryrefslogblamecommitdiffstats
path: root/roles/sshd/tasks/main.yml
blob: fcff3e9837d0476135d8e004c4d7289504d9b26f (plain) (tree)
1
2
3
4
5
6
7
8
9







                                   
                               









                            
- name: generate sshd configuration
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
    owner: 0
    group: 0
    mode: 0644

- name: enable and restart sshd
  service:
    name: sshd
    state: restarted
    enabled: true

- name: check ssh connection
  wait_for:
    port: 22
    delay: 1
    state: started
remember that computers suck.