Ensure OpenSSH allows password authentication via Ansible

- name: Configure Ubuntu SSH
  hosts: all
  become: true
  tasks:
    - name: Ensure SSH Allows Password Authentication
      lineinfile:
        path: /etc/ssh/sshd_config
        line: PasswordAuthentication yes
        regexp: '^PasswordAuthentication .*$'
      notify: RestartSSH
  handlers:
    - name: RestartSSH
      service:
        name: ssh # applicable for Ubuntu
        state: restarted