diff --git a/local.yml b/local.yml index 16dd0a5..b1d4287 100644 --- a/local.yml +++ b/local.yml @@ -13,7 +13,7 @@ personal: "{{ lookup('env', 'HOME') }}/personal" pre_tasks: - - name: Add non-free, contrib repos + - name: Add non-free, contrib repos become: true replace: path: /etc/apt/sources.list @@ -22,16 +22,15 @@ tags: - minimal-install - install - - name: Update Apt cache - become: true - apt: - force_apt_get: true - update_cache: true - state: present - tags: - - minimal-install - - install - + - name: Update Apt cache + become: true + apt: + force_apt_get: true + update_cache: true + state: present + tags: + - minimal-install + - install tasks: - include: tasks/ssh.yml - include: tasks/core-setup.yml diff --git a/tasks/core-setup.yml b/tasks/core-setup.yml index 6b754b2..875d807 100644 --- a/tasks/core-setup.yml +++ b/tasks/core-setup.yml @@ -19,7 +19,6 @@ - man - network-manager # nmtui - network-manager-gnome # nm-connection-editor - - nvidia-driver - ripgrep - stow - sudo diff --git a/tasks/neovim-setup.yml b/tasks/neovim-setup.yml index ac56d6a..cfaf14d 100644 --- a/tasks/neovim-setup.yml +++ b/tasks/neovim-setup.yml @@ -1,7 +1,7 @@ - name: Download neovim become: true ansible.builtin.shell: - cmd: "curl https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz" + cmd: "curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz" tags: - minimal-install - install @@ -23,7 +23,7 @@ - install - neovim - name: Change neovim directory to read and execute for everyone -become: true + become: true ansible.builtin.shell: cmd: "chmod a+rX /opt/nvim-linux64" tags: @@ -51,4 +51,16 @@ become: true git: repo: https://github.com/wbthomason/packer.nvim dest: ~/.local/share/nvim/site/pack/packer/start/packer.nvim + tags: + - minimal-install + - install + - neovim +- name: Remove downloaded neovim archive + become: true + ansible.builtin.shell: + cmd: "rm -rf nvim-linux64.tar.gz" + tags: + - minimal-install + - install + - neovim