Compare commits
2 commits
6c4089870c
...
894539c5c8
Author | SHA1 | Date | |
---|---|---|---|
894539c5c8 | |||
e83253598f |
|
@ -20,6 +20,9 @@ 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
|
||||
|
||||
On macOS, it might be needed to specify the full path to the pip3 executable:
|
||||
- `override_pip_exe`: Set a custom pip executable (default: n.a.)
|
||||
|
||||
The User Setup will change the user shell and global gitconfig. This can be disabled:
|
||||
- `usersetup_chsh`: Boolean to enable changing the user shell to zsh (default: true)
|
||||
- `usersetup_gitconfig`: Boolean to disable overriding the global gitconfig (default: true)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
# defaults file for common
|
||||
|
||||
default_pip3_exe: pip3
|
||||
|
||||
# just copy dotfiles (for foreign hosts like webhosting)
|
||||
common_settingsonly: false
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- visual-studio-code
|
||||
- code
|
||||
- name: vscode - Basics - Additional dependencies
|
||||
package:
|
||||
name: "{{ packages }}"
|
||||
|
@ -18,10 +18,14 @@
|
|||
vars:
|
||||
packages:
|
||||
- plantuml
|
||||
- name: vscode - Basics - Create settings directory
|
||||
file:
|
||||
path: "{{ ansible_user_dir }}/.config/Code/User"
|
||||
state: directory
|
||||
- name: vscode - Basics - Copy global settings
|
||||
copy:
|
||||
src: "{{ role_path }}/files/vscode-settings.json"
|
||||
dest: ~/.config/Code/User/settings.json
|
||||
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
||||
when: user_vscode == true
|
||||
|
||||
# Dev Env - C/C++ Development Tools
|
||||
|
|
|
@ -25,10 +25,14 @@
|
|||
vars:
|
||||
packages:
|
||||
- graphviz
|
||||
- name: vscode - Basics - Create settings directory
|
||||
file:
|
||||
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
|
||||
state: directory
|
||||
- name: vscode - Basics - Copy global settings
|
||||
copy:
|
||||
src: "{{ role_path }}/files/vscode-settings.json"
|
||||
dest: ~/Library/Application Support/Code/User/settings.json
|
||||
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
|
||||
when: user_vscode == true
|
||||
|
||||
# Dev Env - C/C++ Development Tools
|
||||
|
|
|
@ -4,6 +4,17 @@
|
|||
# Install Visual Studio Code and Set Basic Configuration
|
||||
- name: vscode - Basics
|
||||
block:
|
||||
- name: vscode - Basics - Add Repo Key
|
||||
become: yes
|
||||
apt_key:
|
||||
url: "https://packages.microsoft.com/keys/microsoft.asc"
|
||||
state: present
|
||||
- name: vscode - Basics - Add Repo
|
||||
become: yes
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||
filename: vscode
|
||||
state: present
|
||||
- name: vscode - Basics - Install
|
||||
become: yes
|
||||
package:
|
||||
|
@ -11,7 +22,7 @@
|
|||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- visual-studio-code
|
||||
- code
|
||||
- name: vscode - Basics - Additional dependencies
|
||||
become: yes
|
||||
package:
|
||||
|
@ -21,10 +32,14 @@
|
|||
packages:
|
||||
- plantuml
|
||||
- graphviz
|
||||
- name: vscode - Basics - Create settings directory
|
||||
file:
|
||||
path: "{{ ansible_user_dir }}/.config/Code/User"
|
||||
state: directory
|
||||
- name: vscode - Basics - Copy global settings
|
||||
copy:
|
||||
src: "{{ role_path }}/files/vscode-settings.json"
|
||||
dest: ~/.config/Code/User/settings.json
|
||||
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json"
|
||||
when: user_vscode == true
|
||||
|
||||
# Dev Env - C/C++ Development Tools
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
name:
|
||||
- autopep8
|
||||
# - pylint # must be installed in each venv individually!
|
||||
executable: /usr/local/bin/pip3
|
||||
executable: "{{ override_pip_exe | default(default_pip3_exe) }}"
|
||||
when: user_lang_python == true
|
||||
- name: vscode - Python
|
||||
block:
|
||||
|
@ -95,7 +95,7 @@
|
|||
- name: vscode - Golang - Configure VS Code
|
||||
shell: |
|
||||
PATH=/usr/local/bin:$PATH
|
||||
code --install-extension ms-vscode.go
|
||||
code --install-extension golang.go
|
||||
when: user_vscode == true and user_lang_golang == true
|
||||
|
||||
# VS Code - LaTeX Distribution
|
||||
|
|
Loading…
Reference in a new issue