summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/bootstrap/tasks/install-archlinux.yml18
-rw-r--r--roles/partition/tasks/main.yml2
2 files changed, 14 insertions, 6 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml
index 057a639..1e4771a 100644
--- a/roles/bootstrap/tasks/install-archlinux.yml
+++ b/roles/bootstrap/tasks/install-archlinux.yml
@@ -2,8 +2,14 @@
- name: "Run pacstrap"
ansible.builtin.command:
cmd: "pacstrap -K {{ mnt_root_path }} base linux linux-firmware"
+ register: bootstrap_result
changed_when: true
+- name: "Display bootstrap output"
+ ansible.builtin.debug:
+ var: bootstrap_result.stdout_lines
+ verbosity: 1
+
- name: "Generate fstab"
ansible.builtin.shell:
cmd: "genfstab -t PARTLABEL {{ mnt_root_path }} > {{ mnt_root_path }}/etc/fstab"
@@ -44,12 +50,14 @@
force: false
mode: "0644"
-- name: "Ensure pacman is updated in chroot"
- ansible.builtin.shell: |
- arch-chroot {{ mnt_root_path }} pacman-key --init
- arch-chroot {{ mnt_root_path }} pacman-key --populate
- arch-chroot {{ mnt_root_path }} pacman -Syyu --noconfirm
+- name: "Configure system in chroot"
+ ansible.builtin.command:
+ cmd: "arch-chroot {{ mnt_root_path }} {{ item }}"
changed_when: true
+ with_items:
+ - "pacman-key --init"
+ - "pacman-key --populate"
+ - "pacman -Syyu --noconfirm"
- name: "Ensure ansible dependencies are installed in chroot"
ansible.builtin.command:
diff --git a/roles/partition/tasks/main.yml b/roles/partition/tasks/main.yml
index faa6bd0..a52f5c0 100644
--- a/roles/partition/tasks/main.yml
+++ b/roles/partition/tasks/main.yml
@@ -14,7 +14,7 @@
- name: "Show partition_list"
ansible.builtin.debug:
- msg: "{{ partition_list }}"
+ var: partition_list
- name: "Erase device: {{ partition_disk }}"
ansible.builtin.command: