finalize provissionning role

This commit is contained in:
vincent 2021-03-21 19:11:25 +01:00
parent 46d69427f0
commit d4e4e9dd23

View File

@ -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