---

- name: Configure SSH
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
    mode: "0644"
    owner: root
    group: root
    backup: yes
    validate: '/usr/sbin/sshd -T -f %s'
  notify: Restart SSH

---

- name: Configure SSH
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
    mode: "0644"
    owner: root
    group: root
    backup: yes
    validate: '/usr/sbin/sshd -T -f %s'
  notify: Restart SSH
  when: deployment_environment_id != "vagrant"

Reconfigure sshd only in vagrant
Reconfigure sshd only in vagrant
