Skip to content

Commit

Permalink
VSCode apt
Browse files Browse the repository at this point in the history
  • Loading branch information
qhdwight committed Sep 18, 2023
1 parent 34e3a22 commit d0e343a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ansible/roles/dev/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0e343a

Please sign in to comment.