From a384c4385a2db2ab6cbc0a441a56dc62b8e0a6ef Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Wed, 25 Aug 2021 15:31:46 +0200 Subject: [PATCH] Default tasks: Don't install updates by default --- README.md | 29 +++++++++++++---------------- tasks/main.yml | 5 +---- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index bf7faaf..ffeed65 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,15 @@ Example Playbook You can simply run the whole role: ```yml +- name: Basic User Shell Setup + hosts: all + tasks: + - import_role: + name: common +``` + +Or call the different tasks individually: +```yml - name: Basic User Shell Setup hosts: all tasks: @@ -64,17 +73,18 @@ You can simply run the whole role: name: common tasks_from: update when: common_settingsonly | default(false) == false + + ## Run rasks from the role's main.yml - name: Basics - Install essential tools include_role: name: common tasks_from: essentials when: common_settingsonly | default(false) == false - - name: Basics - Install more tools + - name: Basics - Install basic tools include_role: name: common tasks_from: tools when: common_settingsonly | default(false) == false - - name: Basics - Setup user shell include_role: name: common @@ -85,30 +95,17 @@ You can simply run the whole role: name: common tasks_from: usersettings - # Additional Tasks for Specific Host Types (not included in the role's main.yml) - - # more tools for your main machine + ## Additionall tasks for a work station machine - name: Basics - Install user's working utilities import_role: name: common tasks_from: usertools - - # install programming languages and optionally VS Code - name: Basics - Install and configure development env (and VS Code) import_role: name: common tasks_from: devel ``` -Or call the different tasks individually: -```yml -- name: Basic User Shell Setup - hosts: all - tasks: - - import_role: - name: common -``` - License ------- diff --git a/tasks/main.yml b/tasks/main.yml index 6a750bb..de8d1a6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,15 +2,12 @@ # Common setup tasks for all nodes (universial) # Usage: # - Run this whole role for setup -# - You will do nothing wrong, if all steps are executed during periodocal maintenance +# - You will do nothing wrong, if all steps are executed during periodical maintenance # - Maintenance can be faster, if some steps are left out: # - Some tasks are only needed for setup # - Some can be run periodically # - Some must run periodically -- name: Install updates - include_tasks: update.yml - when: common_settingsonly | default(false) == false # if role has not changed, this will not be needed when just installing updates - name: Install essential tools