--- - name: debirf make command: debirf make --new {{debirf_profile_directory}} become: true become_user: debirf become_method: su args: chdir: "{{ debirf_home_directory }}" environment: DEBIRF_DEFAULT_PACKAGES: "{{ debirf_profile_directory }}/default-packages" register: _debirf_make_command - name: copy kernel copy: src: "{{ _debirf_make_command.stderr_lines | map('regex_findall','^debirf> kernel: (.*)$') | list | json_query('[]') | first }}" dest: "{{ debirf_kernel }}" remote_src: yes owner: debirf group: debirf