[BREAKING] rename VS Code tasks to Devel
This commit is contained in:
parent
247f6cccb6
commit
7879bf5f9c
|
@ -89,10 +89,10 @@ You can simply run the whole role:
|
||||||
tasks_from: usertools
|
tasks_from: usertools
|
||||||
|
|
||||||
# install programming languages and optionally VS Code
|
# 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:
|
import_role:
|
||||||
name: common
|
name: common
|
||||||
tasks_from: vscode
|
tasks_from: devel
|
||||||
```
|
```
|
||||||
|
|
||||||
Or call the different tasks individually:
|
Or call the different tasks individually:
|
||||||
|
|
|
@ -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
|
# Install Visual Studio Code and Set Basic Configuration
|
||||||
- name: vscode - Basics
|
- name: vscode - Basics
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
dest: ~/.config/Code/User/settings.json
|
dest: ~/.config/Code/User/settings.json
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# VS Code - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
- name: vscode - C/C++
|
- name: devel - C/C++
|
||||||
block:
|
block:
|
||||||
- name: vscode - C/C++ - Install developer tools
|
- name: devel - C/C++ - Install developer tools
|
||||||
package:
|
package:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -29,13 +29,13 @@
|
||||||
- clang-format
|
- clang-format
|
||||||
when: user_lang_cpp == true
|
when: user_lang_cpp == true
|
||||||
|
|
||||||
# VS Code - Python Development Tools
|
# Dev Env - Python Development Tools
|
||||||
# all done in vscode.yml
|
# all done in vscode.yml
|
||||||
|
|
||||||
# VS Code - Golang Development Tools
|
# Dev Env - Golang Development Tools
|
||||||
- name: vscode - Golang
|
- name: devel - Golang
|
||||||
block:
|
block:
|
||||||
- name: vscode - Golang - Install developer tools
|
- name: devel - Golang - Install developer tools
|
||||||
package:
|
package:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
|
@ -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
|
# Install Visual Studio Code and Set Basic Configuration
|
||||||
- name: vscode - Basics
|
- name: vscode - Basics
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
dest: ~/Library/Application Support/Code/User/settings.json
|
dest: ~/Library/Application Support/Code/User/settings.json
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# VS Code - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
- name: vscode - C/C++
|
- name: devel - C/C++
|
||||||
block:
|
block:
|
||||||
- name: vscode - C/C++ - Install developer tools
|
- name: devel - C/C++ - Install developer tools
|
||||||
homebrew:
|
homebrew:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -29,13 +29,13 @@
|
||||||
- clang-format
|
- clang-format
|
||||||
when: user_lang_cpp == true
|
when: user_lang_cpp == true
|
||||||
|
|
||||||
# VS Code - Python Development Tools
|
# Dev Env - Python Development Tools
|
||||||
# all done in vscode.yml
|
# all done in vscode.yml
|
||||||
|
|
||||||
# VS Code - Golang Development Tools
|
# Dev Env - Golang Development Tools
|
||||||
- name: vscode - Golang
|
- name: devel - Golang
|
||||||
block:
|
block:
|
||||||
- name: vscode - Golang - Install developer tools
|
- name: devel - Golang - Install developer tools
|
||||||
homebrew:
|
homebrew:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
|
@ -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
|
# Install Visual Studio Code and Set Basic Configuration
|
||||||
- name: vscode - Basics
|
- name: vscode - Basics
|
||||||
|
@ -18,10 +18,10 @@
|
||||||
dest: ~/.config/Code/User/settings.json
|
dest: ~/.config/Code/User/settings.json
|
||||||
when: user_vscode == true
|
when: user_vscode == true
|
||||||
|
|
||||||
# VS Code - C/C++ Development Tools
|
# Dev Env - C/C++ Development Tools
|
||||||
- name: vscode - C/C++
|
- name: devel - C/C++
|
||||||
block:
|
block:
|
||||||
- name: vscode - C/C++ - Install developer tools
|
- name: devel - C/C++ - Install developer tools
|
||||||
become: yes
|
become: yes
|
||||||
package:
|
package:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
|
@ -31,13 +31,13 @@
|
||||||
- clang-format
|
- clang-format
|
||||||
when: user_lang_cpp == true
|
when: user_lang_cpp == true
|
||||||
|
|
||||||
# VS Code - Python Development Tools
|
# Dev Env - Python Development Tools
|
||||||
# all done in vscode.yml
|
# all done in vscode.yml
|
||||||
|
|
||||||
# VS Code - Golang Development Tools
|
# Dev Env - Golang Development Tools
|
||||||
- name: vscode - Golang
|
- name: devel - Golang
|
||||||
block:
|
block:
|
||||||
- name: vscode - Golang - Install developer tools
|
- name: devel - Golang - Install developer tools
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
|
@ -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 VS Code, if user_vscode is set
|
||||||
# - Installs development tools, if the corresponding variable 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.
|
# but will not try to configure VS Code, if user_vscode is not set.
|
||||||
|
@ -60,23 +60,23 @@
|
||||||
|
|
||||||
# VC Code - Golang Development Tools
|
# VC Code - Golang Development Tools
|
||||||
# https://golang.org/doc/install
|
# https://golang.org/doc/install
|
||||||
- name: vscode - Golang - Setup Environment
|
- name: devel - Golang - Setup Environment
|
||||||
block:
|
block:
|
||||||
- name: vscode - Golang - Create workspace directory
|
- name: devel - Golang - Create workspace directory
|
||||||
file:
|
file:
|
||||||
path: "{{ user_lang_golang_gopath }}"
|
path: "{{ user_lang_golang_gopath }}"
|
||||||
state: directory
|
state: directory
|
||||||
- name: vscode - Golang - Create zshrc-host
|
- name: devel - Golang - Create zshrc-host
|
||||||
file:
|
file:
|
||||||
path: "{{ ansible_user_dir}}/.zshrc-host"
|
path: "{{ ansible_user_dir}}/.zshrc-host"
|
||||||
state: touch
|
state: touch
|
||||||
- name: vscode - Golang - Add GOPATH
|
- name: devel - Golang - Add GOPATH
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ ansible_user_dir}}/.zshrc-host"
|
path: "{{ ansible_user_dir}}/.zshrc-host"
|
||||||
line: "export GOPATH={{ user_lang_golang_gopath }}"
|
line: "export GOPATH={{ user_lang_golang_gopath }}"
|
||||||
state: present
|
state: present
|
||||||
backup: yes
|
backup: yes
|
||||||
- name: vscode - Golang - Add go bin to PATH
|
- name: devel - Golang - Add go bin to PATH
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ ansible_user_dir}}/.zshrc-host"
|
path: "{{ ansible_user_dir}}/.zshrc-host"
|
||||||
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"
|
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"
|
Loading…
Reference in a new issue