no idea if this will even work

This commit is contained in:
Mark Riedesel 2024-11-20 13:25:40 -06:00
parent 3d064bb41a
commit 199a12f025
5 changed files with 22 additions and 8 deletions

View file

@ -0,0 +1,13 @@
- name: check for archinstall in path
command: which archinstall
ignore_errors: true
register: which_archinstall
- name: inspect archinstall result
set_fact:
archiso_detected: "{{ which_archinstall.rc == 0 }}"
- name: override the inventory_hostname
set_fact:
inventory_hostname: "{{ hostname }}"
when: archiso_detected