title: Ansible : How to handle first login forced password change and push an ssh-key
body: <p>Using ansible to hardenize and configure servers raspberry-pi (arm64), everything works ok, but I need to manually login, change password and the push an ssh key to make my playbook work.</p>
  <p>current process.</p>
  <ol>
  <li>Fresh installed Ubuntu 20.04</li>
  <li>First login user and password ubuntu</li>
  <li>SO force to change password, so I need to fill
  3.1 current password
  3.2 new password
  3.3 password confirmation</li>
  <li>ssh-copy-id -i my sshkey ubuntu@server</li>
  <li>run my playbook to hardenize and do the rest of the job.</li>
  </ol>
  <p>¿Is there any way to perform steps 1 to 4 through ansible instead of only manually?</p>
  <p>I was thinking to get this done with <em><a href="https://docs.ansible.com/ansible/latest/modules/expect_module.html" rel="nofollow noreferrer">expect</a></em> but as per  my understanding it only will work after ansible has been authenticated.</p>