--- - name: configure - Initialize .config shell: "cd {{ openwrt_build_dir }}; rm .config; make defconfig" - name: configure - Append target .config blockinfile: path: "{{ openwrt_build_dir }}/.config" block: "{{ lookup('ansible.builtin.template', 'default_target_config.j2') }}" - name: configure - Expand to full config shell: "cd {{ openwrt_build_dir }}; make defconfig" - name: configure - Copy .config to configs/default_config_{{openwrt_target}}_{{ openwrt_subtarget}} shell: "cd {{ openwrt_build_dir }}; \ mkdir configs; \ cp .config configs/default_config_{{openwrt_target}}_{{ openwrt_subtarget}}"