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 # 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 - name: Abort if the host is not booted from the Arch install media
fail: fail:
msg: "This host {{ ansible_nodename }} is not booted from the Arch install media!" msg: "This host {{ ansible_nodename }} is not booted from the Arch install media!"
@ -118,12 +115,12 @@
line: "PermitRootLogin yes" line: "PermitRootLogin yes"
state: present state: present
- name: change root password - name: change root password
user: shell:
name: root cmd: "echo 'root:{{ vault_default_root | password_hash('sha512')}}' |arch-chroot /mnt chpasswd -e"
password: "{{ vault_default_root |password_hash('sha512') }}"
when: vault_default_root is defined when: vault_default_root is defined
- name: Reboot - name: Reboot
reboot: reboot:
connect_timeout: 1 msg: reboot in new system
reboot_timeout: 1 reboot_timeout: 60
failed_when: false ignore_errors: yes