Is possible to change own password from non-root account ? I found example, but it is not working. I did not find any info about ansible_ssh_newpass variable.
Playbook - hosts: my tasks: - shell: 'printf "%s\n" oldpass newpass newpass | passwd' Iventory [my] myexample.com [my:vars] ansible_connection=ssh ansible_ssh_user=myuser ansible_ssh_pass=oldpass ansible_ssh_newpass=newpass ansible_ssh_common_args='-o StrictHostKeyChecking=no' http://serverfault.com/questions/779165/via-ansible-change-password-of-non-root-account-using-passwd-command-and-picking?answertab=votes#tab-top EDIT: I found that shell: 'printf "%s\n" oldpass newpass newpass | passwd' actually works only when your password is not expired, and if you already logged on the server. Can anyone confirm it? Is there any proper way to change it? Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e1a640df-3c58-489a-a9bd-3202de49368b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
