no idea if this will even work
This commit is contained in:
parent
3d064bb41a
commit
199a12f025
5 changed files with 22 additions and 8 deletions
13
roles/detect_archiso/tasks/main.yaml
Normal file
13
roles/detect_archiso/tasks/main.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue