homeserver/playbooks/on-off/set_password_mg.yml
Quotengrote 4818ef25ef
Passwort (#77)
* Set Password mg - untested

* Playbook set Password mg

* Keepass - Kennwort Update: User linux: mg + private Key ansible-user

* Passwort Var Linux user mg umbenannt

* Bootstrap: KennwörterVars angepasst + setze Password mg IMMER
2020-12-02 10:49:08 +01:00

14 lines
448 B
YAML

---
- hosts: all
become: yes
tasks:
- name: Change user password
user:
name: mg
update_password: always
password: "{{ lookup('keepass', 'linux_mg_user_password_hash', 'password') }}" #hier muss der hash rein
# Hash erstellen
# python -c 'import crypt,getpass; print(getpass.getpass("Name: ")+":"+crypt.crypt(getpass.getpass(),crypt.mksalt(crypt.METHOD_SHA512)))'
# oder
# mkpasswd --method=SHA-512 <passwort>