diff --git a/playbooks/install_morefine.yaml b/playbooks/install_morefine.yaml index 89d24fb..84974c0 100644 --- a/playbooks/install_morefine.yaml +++ b/playbooks/install_morefine.yaml @@ -15,3 +15,15 @@ - name: Get repo ansible.builtin.shell: >- wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg + + - name: Get repo + ansible.builtin.shell: >- + install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg + + - name: Get repo + ansible.builtin.shell: >- + echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code/stable main" > /etc/apt/sources.list.d/vscode.list + - name: Install code + ansible.builtin.apt: + name: + - code