Skip to content

Update Password

Go to Automation

View in GitLab

Description

This playbook updates the system password for a specified user on Linux systems. It generates a secure password if none is provided, hashes it, and updates the user's password on the target system. Additionally, it integrates with Passwordstate to store or update the password securely. The playbook ensures the user exists on the target system before proceeding.

Credentials

  • Passwordstate - API Key for Linux passwords
  • sys_ansible_local

Input

Variable Description
target The target hosts for the playbook
user Username to update the password for
password Optional plaintext password

Output

None

Dependencies