add fc42 to hashicorp config

This commit is contained in:
Matthew Stobbs
2025-05-10 11:08:01 -06:00
parent 0ae915482b
commit cb199a3cbe
2 changed files with 19 additions and 1 deletions

View File

@@ -1,11 +1,27 @@
# vim: set filetype=yaml.ansible :
---
- name: Set package_home_base for Darwin
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
package_home_base: /Users
- name: Set package_home_base for Linux
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
package_home_base: /home
- name: Dump ansible user
debug:
var: ansible_ssh_user
- name: Set local path prefix
when:
- use_local
ansible.builtin.set_fact:
path:
prefix: "{{ lookup('ansible.builtin.env', 'HOME') ~ '/.local' }}"
prefix: "{{ package_home_base }}/{{ ansible_ssh_user }}/.local"
- name: Set non-local path prefix
when: