change_user_pass.yml 266 Bytes
---
- hosts: sndev
  sudo: yes
  gather_facts: false
  tasks:
  - name: change user passwd
    user: name={{ item.name }} password={{ item.chpass | password_hash('sha512') }}  update_password=always
    with_items:
         - { name: 'ubuntu', chpass: 'ubuntu123' }