diff options
Diffstat (limited to 'roles/dotfiles/tasks')
-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 |