Files
lab-rack/push_passwords.yml
2026-07-06 16:45:51 +02:00

20 lines
583 B
YAML

---
- name: Synchronize Host Passwords
hosts: all
become: yes
tasks:
- name: Ensure root password is set from Vault
ansible.builtin.user:
name: root
# This takes the text from your vault and hashes it on your Mac
password: "{{ vault_root_password | password_hash('sha512') }}"
shell: /bin/bash
- name: Ensure volker password is set from Vault
ansible.builtin.user:
name: volker
password: "{{ vault_root_password | password_hash('sha512') }}"
shell: /bin/bash
groups: sudo
append: yes