From d0e343acc1cd685236dbae22f5d3b9eb9d9da526 Mon Sep 17 00:00:00 2001 From: qhdwight Date: Sun, 17 Sep 2023 23:39:20 -0400 Subject: [PATCH] VSCode apt --- ansible/roles/dev/tasks/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ansible/roles/dev/tasks/main.yml b/ansible/roles/dev/tasks/main.yml index 000313060..66f27869a 100644 --- a/ansible/roles/dev/tasks/main.yml +++ b/ansible/roles/dev/tasks/main.yml @@ -16,3 +16,23 @@ - name: Use ZSH as a default shell become: true command: chsh --shell /usr/bin/zsh {{ ansible_user_id }} + +- name: Add VSCode APT Key + become: true + apt_key: + url: https://packages.microsoft.com/keys/microsoft.asc + keyring: /etc/apt/keyrings/packages.microsoft.gpg + +- name: Add VSCode APT List + become: true + apt_repository: + filename: vscode + repo: "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" + +- name: Install VSCode APT Package + become: true + apt: + cache_valid_time: 604800 + state: latest + name: + - code