summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-11 17:37:14 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-11 17:46:52 +0100
commit8d16a6dafc56d6d742099d504df5f7607eada7b0 (patch)
tree358e9aaf87d02e178466514ea27afc1d36436b2d /roles
parent362142db5a4f5004ab02e32ab5086a9668b6d71d (diff)
Update live ISO to avoid issues with keyrings with old ISO
Diffstat (limited to 'roles')
-rw-r--r--roles/bootstrap/tasks/install-archlinux.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml
index 6812926..ffd2f37 100644
--- a/roles/bootstrap/tasks/install-archlinux.yml
+++ b/roles/bootstrap/tasks/install-archlinux.yml
@@ -1,4 +1,13 @@
---
+- name: "Update live environment"
+ ansible.builtin.command:
+ cmd: "{{ item }}"
+ loop:
+ - "pacman -Syu --noconfirm"
+ - "pacman -Sy --needed archlinux-keyring --noconfirm"
+ changed_when: true
+ failed_when: false
+
- name: "Run pacstrap"
ansible.builtin.command:
cmd: "pacstrap -K {{ mnt_root_path }} base linux linux-firmware"