X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Froles%2Fopenwrt-image%2Ftasks%2Fmain.yml;h=1781d9ee242c3eed22ea579190ba45efe623d18b;hb=630b0f012f1b6a579cffddfcf20f0574e5d21a9f;hp=5f9cc52b310a12fd544cea86ee319cd43ac617df;hpb=f80cda10e753af0f4669bd5b2e9d3b33d6657feb;p=noc.git diff --git a/ansible/roles/openwrt-image/tasks/main.yml b/ansible/roles/openwrt-image/tasks/main.yml index 5f9cc52..1781d9e 100644 --- a/ansible/roles/openwrt-image/tasks/main.yml +++ b/ansible/roles/openwrt-image/tasks/main.yml @@ -1,5 +1,6 @@ --- - include: fetch.yml + run_once: true when: openwrt_imgbuilder_tarball is not defined - block: @@ -19,6 +20,7 @@ - name: Build the OpenWrt image command: >- make -C {{ openwrt_imgbuilder_dir }}/{{ openwrt_tarball_basename }} image + {% if openwrt_profile is defined %}PROFILE="{{ openwrt_profile }}" {% endif %} FILES="{{ openwrt_imgbuilder_files }}" PACKAGES="{{ openwrt_packages }}" {% if openwrt_extra_name is defined %} EXTRA_IMAGE_NAME="{{ openwrt_extra_name }}" {% endif %}