change_user_pass.yml 266 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 --- - 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' }