From 6ef437cc797fae619386735aaf59e207e814546b Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 26 Oct 2017 17:08:37 -0400 Subject: [PATCH] comments included..not quite there yet 3 problems: 1. include_role: does not permit tags, so presumably prevents more advanced use of "./runtags olpc" including roles across several of the 9 stages 2. I really want a "dynamic" approach like include_tasks: that spares us the madness of dozens of pages of "skipping, skipping, skipping" crap that should not be running anyway (avoiding the "static" behavior of the old "include:") But unfortunately include_role: does not accept "static: no" (as currently works within "include: ... when:") 3. Any way to squeeze things onto 1 line in Ansible, so it's actually readable as https://github.com/iiab/iiab/blob/master/roles/7-edu-apps/meta/main.yml was? --- roles/7-edu-apps/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/7-edu-apps/tasks/main.yml b/roles/7-edu-apps/tasks/main.yml index b3b565876..8251cbef8 100644 --- a/roles/7-edu-apps/tasks/main.yml +++ b/roles/7-edu-apps/tasks/main.yml @@ -3,30 +3,38 @@ - include_role: name: moodle +# static: no +# tags: ['olpc','moodle','edu-apps'] when: moodle_install - include_role: name: osm +# tags: ['olpc','moodle','edu-apps'] when: osm_install - include_role: name: pathagar +# ['pathagar','edu-apps'] when: pathagar_install - include_role: name: rachel +# ['rachel','edu-apps'] when: rachel_install - include_role: name: kalite +# ['kalite','edu-apps'] when: kalite_install - include_role: name: kiwix +# ['kiwix','edu-apps'] when: kiwix_install - include_role: name: sugarizer +# ['sugarizer','edu-apps'] when: sugarizer_install - name: COMPLETING Educational Apps and Content Installed