diff --git a/debian12-basic.yml b/debian12-basic.yml index d2f0735..56386c3 100644 --- a/debian12-basic.yml +++ b/debian12-basic.yml @@ -20,9 +20,13 @@ - net-tools - unzip - btop - - neovim - git + - name: Remove "neovim" package + ansible.builtin.apt: + name: neovim + state: absent + - name: Create swap file command: dd if=/dev/zero of={{ swapfile_path }} bs=1M count={{ swapfile_size }} args: @@ -98,6 +102,33 @@ ansible.builtin.command: "b2 authorize_account {{ b2keyID }} {{ b2applicationKey }}" + # Install neovim from source if not exists, needed because the apt version ist 7.x but we need 8.x + - name: Check if nviom config folder exists + stat: + path: "/opt/nvim-linux64/bin" + register: nvim + + - name: Download foo.conf + ansible.builtin.get_url: + url: "https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz" + dest: "/tmp/nvim-linux64.tar.gz" + mode: '0440' + when: not nvim.stat.exists + + - name: Extract foo.tgz into /var/lib/foo + ansible.builtin.unarchive: + src: "/tmp/nvim-linux64.tar.gz" + dest: /opt + when: not nvim.stat.exists + + - name: Ensure SELinux is set to enforcing mode + ansible.builtin.lineinfile: + path: ~/bashrc + regexp: '^export PATH' + line: 'export PATH="$PATH:/opt/nvim-linux64/bin"' + when: not nvim.stat.exists + + # Setup neovim - name: Check if nviom config folder exists stat: