fix local path prefix setting

This commit is contained in:
Matthew Stobbs
2025-03-25 04:03:38 -06:00
parent 4cbf4bcfe6
commit cc29115f16

View File

@@ -1,9 +1,18 @@
# vim: set filetype=yaml.ansible :
---
- name: Set path prefix
- name: Set local path prefix
when:
- use_local
ansible.builtin.set_fact:
path:
prefix: "{{ path.prefix | default(defaults.path.prefix) }}"
prefix: "{{ lookup('ansible.builtin.env', 'HOME') ~ '/.local' }}"
- name: Set non-local path prefix
when:
- not use_local
ansible.builtin.set_fact:
path:
prefix: "{{ defaults.path.prefix }}"
- name: Set install variables
ansible.builtin.set_fact: