add vscode installation and config (fix #2)
This commit is contained in:
parent
5b133da522
commit
a44b7ddd1c
7 changed files with 315 additions and 3 deletions
20
README.md
20
README.md
|
@ -16,9 +16,17 @@ Role Variables
|
|||
|
||||
This role uses the apt package manager on Debian based hosts.
|
||||
But for some operating systems the `ansible_os_family` variable is not set to "Debian" by the fact gathering even if it is Debian based (like Mendel GNU/Linux on the Google Coral Dev Board).
|
||||
|
||||
- `override_os_family`: Set to "Debian" in the host inventory, if `ansible_os_family` is not set correctly
|
||||
|
||||
The User Setup will change the user shell and global gitconfig. This can be disabled:
|
||||
- `usersetup_chsh`: Boolean to disable changing the user shell to zsh
|
||||
- `usersetup_gitconfig`: Boolean to disable overriding the global gitconfig
|
||||
|
||||
For a GUI/ Desktop machine, you can enable to install and configure VS Code:
|
||||
- `user_vscode`: Boolean to install and set the basic configuration of VS Code
|
||||
- `user_vscode_cpp`: Boolean to install C/C++ dev tools and configure VS Code
|
||||
- `user_vscode_python`: Boolean to install Python dev tools and configure VS Code
|
||||
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
@ -57,11 +65,17 @@ You can simply run the whole role:
|
|||
name: common
|
||||
tasks_from: usersettings
|
||||
|
||||
# just for you main machine
|
||||
- name: Basics - Install dotfiles
|
||||
# just for you main machine (not included in the role's main.yml)
|
||||
- name: Basics - Install user's working utilities
|
||||
import_role:
|
||||
name: common
|
||||
tasks_from: usertools
|
||||
|
||||
# (not included in the role's main.yml)
|
||||
- name: Basics - Install and configure VS Code
|
||||
import_role:
|
||||
name: common
|
||||
tasks_from: vscode
|
||||
```
|
||||
|
||||
Or call the different tasks individually:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue