Skip to content

Commit 473025e

Browse files
committed
feat: add visual studio code role
1 parent 826d072 commit 473025e

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This Ansible collection provides a set of roles designed for configuring Kubuntu
1919
| [xebis.ansible.system](roles/system/README.md) | System-related tasks such as reboot handler or reboot when required handler. | |
2020
| [xebis.ansible.tmpfs](roles/tmpfs/README.md) | Sets to mount directories as tmpfs during startup. | `xebis.ansible.system` |
2121
| [`xebis.ansible.users`](roles/users/README.md) | Ansible role for managing system users. | `xebis.ansible.openssh_server` |
22+
| `xebis.ansible.visual_studio_code` | Microsoft Visual Studio Code (Stable) | `xebis.ansible.apt` |
2223

2324
## Installation and Configuration
2425

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
dependencies:
3+
- role: xebis.ansible.apt # Expects updated apt cache
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
- name: Add Microsoft apt signing key
3+
become: true
4+
ansible.builtin.apt_key:
5+
url: https://packages.microsoft.com/keys/microsoft.asc
6+
state: present
7+
8+
- name: Add Visual Studio Code apt repository
9+
become: true
10+
ansible.builtin.apt_repository:
11+
repo: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
12+
filename: vscode
13+
mode: u=rw,g=r,o=r
14+
state: present
15+
16+
- name: Install Visual Studio Code
17+
become: true
18+
ansible.builtin.apt:
19+
name: code
20+
state: latest
21+
update_cache: true

test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
- https://github.com/bruzina.keys
3232
- role: xebis.ansible.google_chrome
3333
- role: xebis.ansible.obsidian
34+
- role: xebis.ansible.visual_studio_code

0 commit comments

Comments
 (0)