Compare commits

..

No commits in common. "894539c5c83594ed6e351b7161a019d2af5cc668" and "6c4089870c4b6b86ee78d048a73a7b9df3244b5e" have entirely different histories.

6 changed files with 7 additions and 35 deletions

View file

@ -20,9 +20,6 @@ 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). 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 - `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: 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_chsh`: Boolean to enable changing the user shell to zsh (default: true)
- `usersetup_gitconfig`: Boolean to disable overriding the global gitconfig (default: true) - `usersetup_gitconfig`: Boolean to disable overriding the global gitconfig (default: true)

View file

@ -1,8 +1,6 @@
--- ---
# defaults file for common # defaults file for common
default_pip3_exe: pip3
# just copy dotfiles (for foreign hosts like webhosting) # just copy dotfiles (for foreign hosts like webhosting)
common_settingsonly: false common_settingsonly: false

View file

@ -10,7 +10,7 @@
state: present state: present
vars: vars:
packages: packages:
- code - visual-studio-code
- name: vscode - Basics - Additional dependencies - name: vscode - Basics - Additional dependencies
package: package:
name: "{{ packages }}" name: "{{ packages }}"
@ -18,14 +18,10 @@
vars: vars:
packages: packages:
- plantuml - plantuml
- name: vscode - Basics - Create settings directory
file:
path: "{{ ansible_user_dir }}/.config/Code/User"
state: directory
- name: vscode - Basics - Copy global settings - name: vscode - Basics - Copy global settings
copy: copy:
src: "{{ role_path }}/files/vscode-settings.json" src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json" dest: ~/.config/Code/User/settings.json
when: user_vscode == true when: user_vscode == true
# Dev Env - C/C++ Development Tools # Dev Env - C/C++ Development Tools

View file

@ -25,14 +25,10 @@
vars: vars:
packages: packages:
- graphviz - 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 - name: vscode - Basics - Copy global settings
copy: copy:
src: "{{ role_path }}/files/vscode-settings.json" src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json" dest: ~/Library/Application Support/Code/User/settings.json
when: user_vscode == true when: user_vscode == true
# Dev Env - C/C++ Development Tools # Dev Env - C/C++ Development Tools

View file

@ -4,17 +4,6 @@
# Install Visual Studio Code and Set Basic Configuration # Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics - name: vscode - Basics
block: 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 - name: vscode - Basics - Install
become: yes become: yes
package: package:
@ -22,7 +11,7 @@
state: present state: present
vars: vars:
packages: packages:
- code - visual-studio-code
- name: vscode - Basics - Additional dependencies - name: vscode - Basics - Additional dependencies
become: yes become: yes
package: package:
@ -32,14 +21,10 @@
packages: packages:
- plantuml - plantuml
- graphviz - graphviz
- name: vscode - Basics - Create settings directory
file:
path: "{{ ansible_user_dir }}/.config/Code/User"
state: directory
- name: vscode - Basics - Copy global settings - name: vscode - Basics - Copy global settings
copy: copy:
src: "{{ role_path }}/files/vscode-settings.json" src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json" dest: ~/.config/Code/User/settings.json
when: user_vscode == true when: user_vscode == true
# Dev Env - C/C++ Development Tools # Dev Env - C/C++ Development Tools

View file

@ -52,7 +52,7 @@
name: name:
- autopep8 - autopep8
# - pylint # must be installed in each venv individually! # - pylint # must be installed in each venv individually!
executable: "{{ override_pip_exe | default(default_pip3_exe) }}" executable: /usr/local/bin/pip3
when: user_lang_python == true when: user_lang_python == true
- name: vscode - Python - name: vscode - Python
block: block:
@ -95,7 +95,7 @@
- name: vscode - Golang - Configure VS Code - name: vscode - Golang - Configure VS Code
shell: | shell: |
PATH=/usr/local/bin:$PATH PATH=/usr/local/bin:$PATH
code --install-extension golang.go code --install-extension ms-vscode.go
when: user_vscode == true and user_lang_golang == true when: user_vscode == true and user_lang_golang == true
# VS Code - LaTeX Distribution # VS Code - LaTeX Distribution