diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 1a8f686..54568b5 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -236,7 +236,6 @@ alias 7zencrypt="7z a -t7z -p -mhe" alias alu="apt list --upgradable" alias asdo="apt source --download-only" alias aurmake="makepkg -irs" -alias dotnet="$DOTNET_ROOT/dotnet" alias f=fossil alias ip="ip -c" alias isocal="cal --iso --reform=iso --monday --week" diff --git a/roles/home-cli/tasks/dotfiles.yml b/roles/home-cli/tasks/dotfiles.yml index ba2871e..26bf809 100644 --- a/roles/home-cli/tasks/dotfiles.yml +++ b/roles/home-cli/tasks/dotfiles.yml @@ -92,9 +92,14 @@ ansible.builtin.copy: src: azerty-afnor.txt dest: "{{ ansible_env.XDG_DATA_HOME }}/azerty-afnor.txt" -# Get the latest version from - name: Create $HOME/.local/bin/dotnet-install.sh ansible.builtin.copy: + # Get the latest version from src: dotnet-install.sh dest: "{{ ansible_env.HOME }}/.local/bin/dotnet-install.sh" mode: '0755' +- name: Create $HOME/.local/bin/dotnet + ansible.builtin.file: + src: "{{ ansible_env.HOME }}/.dotnet/dotnet" + dest: "{{ ansible_env.HOME }}/.local/bin/dotnet" + state: link