Installs Visual Studio Code for Linux.
This will default to the code-oss
package when executed on Kali. On all other distros it will use the Microsoft package feed as its source to install code
.
Tested on Ubuntu, Kali, Fedora.
A supported distribution. Most Debian and RedHat family OS's are supported.
IMPORTANT: On recent versions of Fedora, sysmonforlinux
and powershell
are not available through Microsoft's feed for Fedora. However, both of these packages can be installed from Microsoft's feed for RHEL. USE THIS AT YOUR OWN RISK. Both packages were tested in a lab environment on Fedora 40, from RHEL 9's package feed.
Configures whether to use the snap
package manager, mainly for Ubuntu. Default is set to false
.
prefer_snap: "false"
This role depends on the configure_microsoft_repos
role executing.
Playbook file:
- name: "Default Playbook"
hosts:
all
roles:
- role: configure_microsoft_repos
- role: install_vscode
Run with:
ansible-playbook -i <inventory> --ask-become-pass -v ./playbook.yml
MIT