Skip to content
Snippets Groups Projects
Commit fc4c0427 authored by nimrod's avatar nimrod
Browse files

- Added playbook to install Visual Studio Code.

parent 1ec77cc5
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
sha: v0.6.0 sha: v0.6.0
hooks: hooks:
- id: ansible-syntax-check - id: ansible-syntax-check
files: &playbooks 'desktop.yml|dropbox\.yml|pkgs\.yml|skype\.yml|workstation\.yml' files: &playbooks 'desktop.yml|dropbox\.yml|pkgs\.yml|skype\.yml|workstation\.yml|vscode\.yml'
- repo: https://github.com/willthames/ansible-lint - repo: https://github.com/willthames/ansible-lint
sha: v3.4.13 sha: v3.4.13
hooks: hooks:
......
...@@ -63,3 +63,13 @@ Installs Dropbox headless. ...@@ -63,3 +63,13 @@ Installs Dropbox headless.
.. code:: shell .. code:: shell
ansible-playbook --connection local --inventory-file localhost, --verbose dropbox.yml ansible-playbook --connection local --inventory-file localhost, --verbose dropbox.yml
VSCode
======
Installs `Visual Studio Code <https://code.visualstudio.com/>`_ from APT repo.
.. code:: shell
ansible-playbook --connection local --inventory-file localhos, --verbose vscode.yml
---
- hosts: all
become: yes
become_user: root
tasks:
- name: Add repo key
apt_key:
url: https://packages.microsoft.com/keys/microsoft.asc
state: present
- name: Add repo
apt_repository:
repo: deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main
state: present
update_cache: True
- name: APT install
apt:
name: code
state: present
install_recommends: False
update_cache: True
cache_valid_time: 3600
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment