[BREAKING] rename VS Code tasks to Devel

This commit is contained in:
Jannik Beyerstedt 2020-01-16 13:40:01 +01:00
parent 247f6cccb6
commit 7879bf5f9c
5 changed files with 32 additions and 32 deletions

View file

@ -89,10 +89,10 @@ You can simply run the whole role:
tasks_from: usertools
# install programming languages and optionally VS Code
- name: Basics - Install and configure VS Code
- name: Basics - Install and configure development env (and VS Code)
import_role:
name: common
tasks_from: vscode
tasks_from: devel
```
Or call the different tasks individually:

View file

@ -1,5 +1,5 @@
---
# Common/VSCode: Install and Configure VS Code - ArchLinux Version
# Common/Devel: Install and Configure Dev Env - ArchLinux Version
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
@ -17,10 +17,10 @@
dest: ~/.config/Code/User/settings.json
when: user_vscode == true
# VS Code - C/C++ Development Tools
- name: vscode - C/C++
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
block:
- name: vscode - C/C++ - Install developer tools
- name: devel - C/C++ - Install developer tools
package:
name: "{{ packages }}"
state: present
@ -29,13 +29,13 @@
- clang-format
when: user_lang_cpp == true
# VS Code - Python Development Tools
# Dev Env - Python Development Tools
# all done in vscode.yml
# VS Code - Golang Development Tools
- name: vscode - Golang
# Dev Env - Golang Development Tools
- name: devel - Golang
block:
- name: vscode - Golang - Install developer tools
- name: devel - Golang - Install developer tools
package:
name: "{{ packages }}"
state: present

View file

@ -1,5 +1,5 @@
---
# Common/VSCode: Install and Configure VS Code - macOS Version
# Common/Devel: Install and Configure Dev Env - macOS Version
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
@ -17,10 +17,10 @@
dest: ~/Library/Application Support/Code/User/settings.json
when: user_vscode == true
# VS Code - C/C++ Development Tools
- name: vscode - C/C++
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
block:
- name: vscode - C/C++ - Install developer tools
- name: devel - C/C++ - Install developer tools
homebrew:
name: "{{ packages }}"
state: present
@ -29,13 +29,13 @@
- clang-format
when: user_lang_cpp == true
# VS Code - Python Development Tools
# Dev Env - Python Development Tools
# all done in vscode.yml
# VS Code - Golang Development Tools
- name: vscode - Golang
# Dev Env - Golang Development Tools
- name: devel - Golang
block:
- name: vscode - Golang - Install developer tools
- name: devel - Golang - Install developer tools
homebrew:
name: "{{ packages }}"
state: present

View file

@ -1,5 +1,5 @@
---
# Common/VSCode: Install and Configure VS Code - Debian Version
# Common/Devel: Install and Configure Dev Env - Debian Version
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
@ -18,10 +18,10 @@
dest: ~/.config/Code/User/settings.json
when: user_vscode == true
# VS Code - C/C++ Development Tools
- name: vscode - C/C++
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
block:
- name: vscode - C/C++ - Install developer tools
- name: devel - C/C++ - Install developer tools
become: yes
package:
name: "{{ packages }}"
@ -31,13 +31,13 @@
- clang-format
when: user_lang_cpp == true
# VS Code - Python Development Tools
# Dev Env - Python Development Tools
# all done in vscode.yml
# VS Code - Golang Development Tools
- name: vscode - Golang
# Dev Env - Golang Development Tools
- name: devel - Golang
block:
- name: vscode - Golang - Install developer tools
- name: devel - Golang - Install developer tools
become: yes
apt:
name: "{{ packages }}"

View file

@ -1,5 +1,5 @@
---
# Common/VSCode: Install and Configure VS Code
# Common/Devel: Install and Configure Dev Environment (optionally VS Code)
# - Installs VS Code, if user_vscode is set
# - Installs development tools, if the corresponding variable is set
# but will not try to configure VS Code, if user_vscode is not set.
@ -60,23 +60,23 @@
# VC Code - Golang Development Tools
# https://golang.org/doc/install
- name: vscode - Golang - Setup Environment
- name: devel - Golang - Setup Environment
block:
- name: vscode - Golang - Create workspace directory
- name: devel - Golang - Create workspace directory
file:
path: "{{ user_lang_golang_gopath }}"
state: directory
- name: vscode - Golang - Create zshrc-host
- name: devel - Golang - Create zshrc-host
file:
path: "{{ ansible_user_dir}}/.zshrc-host"
state: touch
- name: vscode - Golang - Add GOPATH
- name: devel - Golang - Add GOPATH
lineinfile:
path: "{{ ansible_user_dir}}/.zshrc-host"
line: "export GOPATH={{ user_lang_golang_gopath }}"
state: present
backup: yes
- name: vscode - Golang - Add go bin to PATH
- name: devel - Golang - Add go bin to PATH
lineinfile:
path: "{{ ansible_user_dir}}/.zshrc-host"
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"