diff --git a/tasks/devel-Archlinux.yml b/tasks/devel-Archlinux.yml index b42a818..9a30d98 100644 --- a/tasks/devel-Archlinux.yml +++ b/tasks/devel-Archlinux.yml @@ -13,7 +13,7 @@ # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics - when: user_vscode == true + when: user_vscode block: - name: VSCode - Basics - Install become: true @@ -37,14 +37,16 @@ ansible.builtin.file: path: "{{ ansible_user_dir }}/.config/Code/User" state: directory + mode: "0755" - name: VSCode - Basics - Copy global settings ansible.builtin.copy: src: "{{ role_path }}/files/vscode-settings.json" dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json" + mode: "0644" # Dev Env - C/C++ Development Tools - name: Devel - C/C++ - when: user_lang_cpp == true + when: user_lang_cpp block: - name: Devel - C/C++ - Install developer tools become: true @@ -61,7 +63,7 @@ # Dev Env - Golang Development Tools - name: Devel - Golang - when: user_lang_golang == true + when: user_lang_golang block: - name: Devel - Golang - Install developer tools become: true @@ -75,7 +77,7 @@ # Dev Env - LaTeX Distribution - name: Devel - LaTeX - when: user_lang_latex == true + when: user_lang_latex block: - name: Devel - LaTeX - Install basic TeX distribution become: true diff --git a/tasks/devel-Darwin.yml b/tasks/devel-Darwin.yml index e9317d6..8e9f6b6 100644 --- a/tasks/devel-Darwin.yml +++ b/tasks/devel-Darwin.yml @@ -8,7 +8,7 @@ # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics - when: user_vscode == true + when: user_vscode block: - name: VSCode - Basics - Install community.general.homebrew_cask: @@ -35,14 +35,16 @@ ansible.builtin.file: path: "{{ ansible_user_dir }}/Library/Application Support/Code/User" state: directory + mode: "0755" - name: VSCode - Basics - Copy global settings ansible.builtin.copy: src: "{{ role_path }}/files/vscode-settings.json" dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json" + mode: "0644" # Dev Env - C/C++ Development Tools - name: Devel - C/C++ - when: user_lang_cpp == true + when: user_lang_cpp block: - name: Devel - C/C++ - Install developer tools community.general.homebrew: @@ -58,7 +60,7 @@ # Dev Env - Golang Development Tools - name: Devel - Golang - when: user_lang_golang == true + when: user_lang_golang block: - name: Devel - Golang - Install developer tools community.general.homebrew: @@ -71,7 +73,7 @@ # Dev Env - LaTeX Distribution - name: Devel - LaTeX - when: user_vscode == true and user_lang_latex == true + when: user_vscode and user_lang_latex block: - name: Devel - LaTeX - Install basic TeX distribution community.general.homebrew_cask: diff --git a/tasks/devel-Debian.yml b/tasks/devel-Debian.yml index 73204af..ee70777 100644 --- a/tasks/devel-Debian.yml +++ b/tasks/devel-Debian.yml @@ -10,7 +10,7 @@ # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics - when: user_vscode == true + when: user_vscode block: - name: VSCode - Basics - Add Repo Key become: true @@ -46,14 +46,16 @@ ansible.builtin.file: path: "{{ ansible_user_dir }}/.config/Code/User" state: directory + mode: "0755" - name: VSCode - Basics - Copy global settings ansible.builtin.copy: src: "{{ role_path }}/files/vscode-settings.json" dest: "{{ ansible_user_dir }}/.config/Code/User/settings.json" + mode: "0644" # Dev Env - C/C++ Development Tools - name: Devel - C/C++ - when: user_lang_cpp == true + when: user_lang_cpp block: - name: Devel - C/C++ - Install developer tools become: true @@ -70,7 +72,7 @@ # Dev Env - Golang Development Tools - name: Devel - Golang - when: user_lang_golang == true + when: user_lang_golang block: - name: Devel - Golang - Install developer tools become: true @@ -82,7 +84,7 @@ # Dev Env - LaTeX Distribution - name: Devel - LaTeX - when: user_lang_latex == true + when: user_lang_latex block: - name: Devel - LaTeX - Install basic TeX distribution ansible.builtin.package: diff --git a/tasks/devel.yml b/tasks/devel.yml index c9b3501..39c6508 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -17,11 +17,11 @@ ansible.builtin.include_tasks: "{{ item }}" with_first_found: - "devel-{{ ansible_distribution }}.yml" - - "devel-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml" + - "devel-{{ (override_os_family is defined) | ternary(override_os_family, ansible_os_family) }}.yml" # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics - when: user_vscode == true + when: user_vscode block: - name: VSCode - Basics - Configure ansible.builtin.shell: | @@ -37,7 +37,7 @@ # VS Code - C/C++ Development Tools - name: VSCode - C/C++ - when: user_vscode == true and user_lang_cpp == true + when: user_vscode and user_lang_cpp block: - name: VSCode - C/C++ - Configure VS Code ansible.builtin.shell: | @@ -48,14 +48,14 @@ # VS Code - Python Development Tools - name: Devel - Python - Install python dev packages - when: user_lang_python == true + when: user_lang_python ansible.builtin.pip: name: - autopep8 # - pylint # must be installed in each venv individually! executable: "{{ override_pip_exe | default(default_pip3_exe) }}" - name: VSCode - Python - when: user_vscode == true and user_lang_python == true + when: user_vscode and user_lang_python block: - name: VSCode - Python - Configure VS Code ansible.builtin.shell: | @@ -65,16 +65,18 @@ # VC Code - Golang Development Tools # https://golang.org/doc/install - name: Devel - Golang - Setup Environment - when: user_lang_golang == true + when: user_lang_golang block: - name: Devel - Golang - Create workspace directory ansible.builtin.file: path: "{{ user_lang_golang_gopath }}" state: directory + mode: "0755" - name: Devel - Golang - Create zshrc-host ansible.builtin.file: path: "{{ ansible_user_dir }}/.zshrc-host" state: touch + mode: "0644" - name: Devel - Golang - Add GOPATH ansible.builtin.lineinfile: path: "{{ ansible_user_dir }}/.zshrc-host" @@ -91,7 +93,7 @@ # and group all golang stuff in one section inside zshrc-host - name: VSCode - Golang - when: user_vscode == true and user_lang_golang == true + when: user_vscode and user_lang_golang block: - name: VSCode - Golang - Configure VS Code ansible.builtin.shell: | @@ -100,7 +102,7 @@ # VS Code - LaTeX Distribution - name: Devel - LaTeX - Install TeX packages - when: user_lang_latex == true + when: user_lang_latex become: true ansible.builtin.shell: | PATH=/Library/TeX/texbin:$PATH @@ -109,7 +111,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 - name: VSCode - LaTeX - when: user_vscode == true and user_lang_latex == true + when: user_vscode and user_lang_latex block: - name: VSCode - Basics - Configure ansible.builtin.shell: | diff --git a/tasks/usersettings.yml b/tasks/usersettings.yml index ed01d40..44e52c8 100644 --- a/tasks/usersettings.yml +++ b/tasks/usersettings.yml @@ -69,6 +69,7 @@ ansible.builtin.copy: src: "{{ item.src }}" dest: "{{ item.dest }}" + mode: "0644" with_items: - { src: "{{ role_path }}/files/_gitignore_global", @@ -86,6 +87,7 @@ ansible.builtin.file: path: "{{ item }}" state: directory + mode: "0755" with_items: - "{{ ansible_user_dir }}/.config/htop/" - name: Usersettings - Set templated dotfiles @@ -93,6 +95,7 @@ src: "{{ item.src }}" dest: "{{ item.dest }}" force: "{{ item.force }}" + mode: "0644" ignore_errors: true with_items: - { @@ -116,22 +119,25 @@ force: false, } - name: Usersettings - Set global gitconfig - when: usersetup_gitconfig == true + when: usersetup_gitconfig ansible.builtin.template: src: "{{ role_path }}/templates/_gitconfig.j2" dest: "{{ ansible_user_dir }}/.gitconfig" + mode: "0644" - name: Usersettings - Vim Plugings - when: usersetup_vimplugins == true + when: usersetup_vimplugins block: - name: Usersettings - Create .vim directory ansible.builtin.file: path: "{{ ansible_user_dir }}/.vim/autoload" state: directory + mode: "0755" - name: Usersettings - Install vim plugin manager ansible.builtin.get_url: url: https://tpo.pe/pathogen.vim dest: "{{ ansible_user_dir }}/.vim/autoload/pathogen.vim" + mode: "0644" - name: Usersettings - Install vim plugins ansible.builtin.git: repo: "{{ item.repo }}"