From bdfde3ec596c55047a4ad0f288ca42b733117ac8 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 25 Sep 2017 08:33:21 +0000 Subject: [PATCH] split build stages --- tasks/main.yml | 49 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d7ca8f0..99b477c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -75,14 +75,49 @@ src: isolinux.cfg.j2 dest: "{{ live_build_directory }}/config/includes.binary/isolinux/isolinux.cfg" -- name: lb build +- name: lb bootstrap (first build stage) command: - lb build + lb bootstrap args: chdir: "{{ live_build_directory }}" - register: _lb_build + register: _lb_bootstrap -- name: save build log - copy: - content: "{{ _lb_build.stdout }}" - dest: "{{ live_build_directory }}/build.log" +- name: lb chroot (second build stage) + command: + lb chroot + args: + chdir: "{{ live_build_directory }}" + register: _lb_chroot + +- name: lb installer (third build stage) + command: + lb installer + args: + chdir: "{{ live_build_directory }}" + register: _lb_installer + +- name: lb binary (fourth build stage) + command: + lb binary + args: + chdir: "{{ live_build_directory }}" + register: _lb_binary + +#- name: lb source (fifth build stage) +# command: +# lb source +# args: +# chdir: "{{ live_source_directory }}" +# register: _lb_source + +#- name: lb build +# command: +# lb build +# args: +# chdir: "{{ live_build_directory }}" +# register: _lb_build +# +#- name: save build log +# copy: +# content: "{{ _lb_build.stdout }}" +# dest: "{{ live_build_directory }}/build.log"