aboutsummaryrefslogblamecommitdiffstats
path: root/roles/ssh/tasks/main.yml
blob: 0fc2dee57e7e9bd4ee4bc9c8baf2d209080e93b9 (plain) (tree)
1
2
3
4
5




                       

















                                   

# ssh ~~ tasks/main.yml

---

- name: Generate sshd configuration
  template:
    src: templates/sshd_config.j2
    dest: /etc/ssh/sshd_config
    owner: root
    group: "{{ group_root }}"
    mode: "0644"

- name: Restart sshd
  service:
    name: sshd
    state: restarted

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