From 79bc16c2480b17166e1f4c4d34a08fb03468f3b0 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 12 Sep 2022 22:10:46 +0200 Subject: [PATCH] change variable password --- defaults/main.yml | 1 + tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index dc3a33e..834cc49 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: '' diff --git a/tasks/main.yml b/tasks/main.yml index 1cdb1c2..53f3fec 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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