change variable password

This commit is contained in:
vincent 2022-09-12 22:10:46 +02:00
parent c033aa536a
commit 79bc16c248
2 changed files with 3 additions and 2 deletions

View File

@ -74,3 +74,4 @@ provissionning_enable_service:
system_arch_local_mirror:
#need vfat boot partition with esp label
provissionning_UEFI_Enable: False
provissionning_default_root: ''

View File

@ -116,8 +116,8 @@
state: present
- name: change root password
shell:
cmd: "echo 'root:{{ vault_default_root | password_hash('sha512')}}' |arch-chroot /mnt chpasswd -e"
when: vault_default_root is defined
cmd: "echo 'root:{{ provissionning_default_root | password_hash('sha512')}}' |arch-chroot /mnt chpasswd -e"
when: provissionning_default_root is defined
- name: Reboot
reboot:
msg: reboot in new system