diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-09 10:41:03 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-08-09 10:41:03 +0100 |
commit | 40e236d3c49f803196412e965c77b4691525c29f (patch) | |
tree | 02b6759e18c9c29fe002bf6aee37ba77d48196b4 /roles/dotfiles/tasks/main.yml | |
parent | 873d51d388b3c61f926d025b8ce3ee83e845a89f (diff) | |
download | infra-40e236d3c49f803196412e965c77b4691525c29f.tar.gz infra-40e236d3c49f803196412e965c77b4691525c29f.tar.bz2 infra-40e236d3c49f803196412e965c77b4691525c29f.zip |
Move go configuration to goenv role
Diffstat (limited to 'roles/dotfiles/tasks/main.yml')
-rw-r--r-- | roles/dotfiles/tasks/main.yml | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index 6761bd6..53acf24 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -134,26 +134,12 @@ failed_when: false register: has_go - - name: Set go config directory for macOS - set_fact: - go_conf_dir: '{{ homedir }}/Library/Application Support/go' - when: has_go.rc == 0 and ansible_os_family == "Darwin" - - - name: Set go config directory for Linux - set_fact: - go_conf_dir: '{{ homedir }}/.config/go' - when: has_go.rc == 0 and ansible_os_family != "Darwin" - - - name: Create go config directory - ansible.builtin.file: - path: '{{ go_conf_dir }}' - state: directory - owner: '{{ user }}' - - - name: Configure go enviroment - ansible.builtin.template: - src: misc/dotfiles/goenv.j2 - dest: '{{ go_conf_dir }}/env' + - ansible.builtin.include_role: + name: goenv + vars: + goenv_user: '{{ user }}' + goenv_group: '{{ group }}' + goenv_homedir: '{{ homedir }}' when: has_go.rc == 0 - name: Copy templates files if necessary |