Files

17 lines
527 B
YAML
Raw Permalink Normal View History

2026-07-06 16:45:51 +02:00
---
- name: Emergency Password Reset
hosts: all
become: yes
tasks:
- name: Force reset root password to something known
ansible.builtin.user:
name: root
# Replace 'TemporaryPassword123' with your desired plain text password
password: "{{ 'xxx' | password_hash('sha512', 'mycustomsalt') }}"
shell: /bin/bash
- name: Force reset your main user password
ansible.builtin.user:
name: volker
password: "{{ 'xxx' | password_hash('sha512', 'mycustomsalt') }}"