This Role Has Been Deprecated: Please use the version in the oasis_roles.system Ansible Collection
This role changes the password for a user account.
Ansible 2.4 or higher
Red Hat Enterprise Linux 7 or equivalent
Valid Red Hat Subscriptions
Currently the following variables are supported:
-
passwd_username
- REQUIRED - The username for which to change the password -
passwd_password
- REQUIRED - Password hash to pass to Ansible's user module. IMPORTANT: See Ansible's documentation for properly and securely generating and storing this hash. -
passwd_become
- Defaults totrue
. Whether or not to use thebecome
feature of Ansible to gain admin privileges. This will be necesssary for changing theroot
password, or the password of a user other than Ansible'sremote_user
. -
passwd_become_user
- Defaults toroot
. The user to sudo/become
None
- hosts: passwd-servers
roles:
- role: oasis-roles.passwd
passwd_username: root
passwd_password: "<password_hash>"
passwd_become: true
passwd_become_user: root
GPLv3
David Roble [email protected]