From fb5b20efdf60f105060ba85f733b2a4369a0a060 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 20 Dec 2025 20:49:49 +0100 Subject: [PATCH] chore: Add tags to tasks --- tasks/devel.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tasks/devel.yml b/tasks/devel.yml index 899805d..a942f1c 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -14,13 +14,18 @@ # - user_lang_latex: Boolean for LaTeX - name: VSCode - Install and configure VS Code - ansible.builtin.include_tasks: "{{ item }}" + tags: vscode + ansible.builtin.include_tasks: + file: "{{ item }}" + apply: + tags: vscode with_first_found: - "devel-{{ ansible_facts['distribution'] }}.yml" - "devel-{{ (override_os_family is defined) | ternary(override_os_family, ansible_facts['os_family']) }}.yml" # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics + tags: vscode when: user_vscode block: - name: VSCode - Basics - Configure @@ -37,6 +42,7 @@ # VS Code - C/C++ Development Tools - name: VSCode - C/C++ + tags: lang_cpp when: user_vscode and user_lang_cpp block: - name: VSCode - C/C++ - Configure VS Code @@ -47,6 +53,7 @@ # VS Code - Python Development Tools - name: Devel - Python - Install python dev packages + tags: lang_python when: user_lang_python ansible.builtin.pip: name: @@ -64,6 +71,7 @@ # VC Code - Golang Development Tools # https://golang.org/doc/install - name: Devel - Golang - Setup Environment + tags: lang_golang when: user_lang_golang block: - name: Devel - Golang - Create workspace directory @@ -92,6 +100,7 @@ # and group all golang stuff in one section inside zshrc-host - name: VSCode - Golang + tags: lang_golang when: user_vscode and user_lang_golang block: - name: VSCode - Golang - Configure VS Code @@ -101,6 +110,7 @@ # VS Code - LaTeX Distribution - name: Devel - LaTeX - Install TeX packages + tags: lang_latex when: user_lang_latex become: true ansible.builtin.shell: | @@ -110,6 +120,7 @@ tlmgr install collection-fontsextra collection-fontsrecommended collection-fontutils collection-langgerman collection-langenglish collection-mathscience tlmgr install todonotes textpos lipsum pgfopts xpatch enumitem nomencl glossaries glossaries-german glossaries-english datatool mfirstuc xfor substr tracklang placeins placeins-plain csquotes appendixnumberbeamer fontaxes hyphenat datetime2 scrhack setspaceenhanced catchfile lscapeenhanced - name: VSCode - LaTeX + tags: lang_latex when: user_vscode and user_lang_latex block: - name: VSCode - Basics - Configure