[FIX] add common_settingsonly flag to role as well

This commit is contained in:
Jannik Beyerstedt 2019-10-31 18:29:35 +01:00
parent cb3f6cdf7a
commit c37ae1742c
4 changed files with 24 additions and 10 deletions

View file

@ -30,6 +30,8 @@ For a GUI/ Desktop machine, you can enable to install and configure VS Code:
The `user_lang_*` switches will also install the language only, if `user_vscode` is set to false.
To install just the dotfiles, set `common_settingsonly` to true.
Dependencies
------------
@ -50,31 +52,37 @@ You can simply run the whole role:
import_role:
name: common
tasks_from: update
when: common_settingsonly | default(false) == false
- name: Basics - Install essential tools
import_role:
name: common
tasks_from: essentials
when: common_settingsonly | default(false) == false
- name: Basics - Install more tools
import_role:
name: common
tasks_from: tools
when: common_settingsonly | default(false) == false
- name: Basics - Setup user shell
import_role:
name: common
tasks_from: usersetup
when: common_settingsonly | default(false) == false
- name: Basics - Install dotfiles
import_role:
name: common
tasks_from: usersettings
# just for you main machine (not included in the role's main.yml)
# Additional Tasks for Specific Host Types (not included in the role's main.yml)
# more tools for your main machine
- name: Basics - Install user's working utilities
import_role:
name: common
tasks_from: usertools
# (not included in the role's main.yml)
# install programming languages and optionally VS Code
- name: Basics - Install and configure VS Code
import_role:
name: common
@ -87,9 +95,8 @@ Or call the different tasks individually:
hosts: all
strategy: free
tasks:
- name: Basics - Update first
roles:
- common
- import_role:
name: common
```