set a chroot prefix maybe

This commit is contained in:
Mark Riedesel 2024-11-20 14:02:59 -06:00
parent fe1de60c00
commit 93564fd41f
4 changed files with 6 additions and 12 deletions

View file

@ -1,13 +1,9 @@
---
- name: check for archinstall in path
command: which archinstall
ignore_errors: true
register: which_archinstall
- name: inspect archinstall result
- name: inspect archinstall check result
set_fact:
archiso_detected: "{{ which_archinstall.rc == 0 }}"
- name: load alternate host vars
include_vars:
file: "../../../inventory/host_vars/{{ hostname }}.yaml"
when: archiso_detected and hostname is defined