diff --git a/tasks/facts.yml b/tasks/facts.yml index cdd2d3f..f1d9221 100644 --- a/tasks/facts.yml +++ b/tasks/facts.yml @@ -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: diff --git a/vars/pkgs/hashicorp.yml b/vars/pkgs/hashicorp.yml index 6b3f0c9..69f66a5 100644 --- a/vars/pkgs/hashicorp.yml +++ b/vars/pkgs/hashicorp.yml @@ -8,5 +8,7 @@ hashicorp: repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo ".fc41": repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo + ".fc42": + repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo debian: repo: "deb [arch={{ ansible_architecture }} signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"