Skip to content

Instantly share code, notes, and snippets.

@RudW0lf
RudW0lf / passwd.yml
Created April 18, 2018 14:43 — forked from krushik/passwd.yml
ansible playbook to change user password on linux
---
# You may override default target user with -e user=someotheruser
# You may need 'apt-get install python-passlib' or 'pip install passlib' for vars_prompt encryption
# It is mandatory to choose a strong password! At least consult with https://www.bennish.net/password-strength-checker/
- name: change linux user password
hosts: [all]
gather_facts: no
vars_prompt:
## use this when 656K rounds will be OK for your servers CPU perfomance, or when rounds number will become configurable in ansible