diff --git a/Dockerfile b/Dockerfile index 69433a1..d3758b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN apt update && apt -y install software-properties-common && add-apt-repositor # run Ansible commands COPY ./requirements.yaml ./playbook.yaml ./ -RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -i,localhost playbook.yaml --tags "install_oshw_tools, install_firefox" && rm -f ./*.yaml +RUN ansible-galaxy install -r requirements.yaml && ansible-playbook -i,localhost playbook.yaml --tags "install_oshw_tools, install_firefox, install_vscodium" && rm -f ./*.yaml # Custom Desktop Background - replace bg_custom.png on disk with your own background image COPY ./bg_custom.png /usr/share/extra/backgrounds/bg_default.png diff --git a/playbook.yaml b/playbook.yaml index 1eabec9..a7d8c3d 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -703,6 +703,10 @@ # install sudo for the vs-code role below hosts: localhost connection: local + gather_facts: yes + tags: + - install_vscodium + tasks: - name: Install Sudo apt: @@ -718,6 +722,9 @@ # add dev user to give vs code somewhere to install extensions hosts: localhost connection: local + gather_facts: yes + tags: + - install_vscodium tasks: - name: Add dev user user: @@ -728,34 +735,51 @@ # install the remainder of the tools hosts: localhost connection: local + gather_facts: yes + tags: + - install_vscodium + environment: DONT_PROMPT_WSL_INSTALL: 1 roles: - - role: gantsign.visual-studio-code - users: - - username: "dev" - visual_studio_code_extensions: - - ms-python.python - - James-Yu.latex-workshop - visual_studio_code_settings_overwrite: yes - visual_studio_code_settings: { - "extensions.ignoreRecommendations": true, - "update.mode": "none", - "extensions.autoUpdate": false, - "extensions.autoCheckUpdates": false, - "terminal.integrated.profiles.linux": { - "bash (login)": { - "path": "bash", - "args": ["-l"] - } - }, - "terminal.integrated.defaultProfile.linux": "bash (login)" - } +# - role: gantsign.visual-studio-code +# users: +# - username: "dev" +# visual_studio_code_extensions: +# - ms-python.python +# - James-Yu.latex-workshop +# visual_studio_code_settings_overwrite: yes +# visual_studio_code_settings: { +# "extensions.ignoreRecommendations": true, +# "update.mode": "none", +# "extensions.autoUpdate": false, +# "extensions.autoCheckUpdates": false, +# "terminal.integrated.profiles.linux": { +# "bash (login)": { +# "path": "bash", +# "args": ["-l"] +# } +# }, +# "terminal.integrated.defaultProfile.linux": "bash (login)" +# } + + - ansible-vscodium-installer + vscode_marketplace: true + vscodium_extensions: + - ms-python.python + - James-Yu.latex-workshop + vscodium_settings: /path/to/code/settings + vscodium_keybindings: /path/to/code/bindings + vscodium_tasks: /path/to/code/tasks - # Copy VS Code changes to kasm-default-profile and lean up (remove) dev user now that vs code is installed hosts: localhost connection: local + gather_facts: yes + tags: + - install_vscodium + tasks: - name: Copy VS Code changes to kasm-default-profile shell: diff --git a/requirements.yaml b/requirements.yaml index 2a217b5..4377e2e 100644 --- a/requirements.yaml +++ b/requirements.yaml @@ -5,5 +5,6 @@ - andrewrothstein.pandoc # https://galaxy.ansible.com/andrewrothstein/pandoc - staticdev.firefox # https://galaxy.ansible.com/staticdev/firefox #- geerlingguy.pip # https://galaxy.ansible.com/geerlingguy/pip -- gantsign.visual-studio-code # https://galaxy.ansible.com/gantsign/visual-studio-code +#- gantsign.visual-studio-code # https://galaxy.ansible.com/gantsign/visual-studio-code +- guillermodotn.vscodium # https://galaxy.ansible.com/ui/standalone/roles/guillermodotn/vscodium/ ...