13 lines
383 B
YAML
13 lines
383 B
YAML
- 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: load alternate host vars
|
|
include_vars:
|
|
file: "../../../inventory/host_vars/{{ hostname }}.yaml"
|
|
when: archiso_detected and hostname is defined
|