From d4e4e9dd23ff22313b6cbeca4b6bed83b4a9cc3e Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 21 Mar 2021 19:11:25 +0100 Subject: [PATCH] finalize provissionning role --- tasks/main.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8750c60..dc9ae69 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,6 @@ --- # tasks file for ansible-arch-provissionninga # -- name: debug - debug: - msg: "{% if provissionning_UEFI_Enable == True %} GPT {% else %} msdos {% endif %}" - name: Abort if the host is not booted from the Arch install media fail: msg: "This host {{ ansible_nodename }} is not booted from the Arch install media!" @@ -118,12 +115,12 @@ line: "PermitRootLogin yes" state: present - name: change root password - user: - name: root - password: "{{ vault_default_root |password_hash('sha512') }}" + shell: + cmd: "echo 'root:{{ vault_default_root | password_hash('sha512')}}' |arch-chroot /mnt chpasswd -e" when: vault_default_root is defined - name: Reboot reboot: - connect_timeout: 1 - reboot_timeout: 1 - failed_when: false + msg: reboot in new system + reboot_timeout: 60 + ignore_errors: yes +