install_openwrt.yml 701 B

1234567891011121314151617181920212223
  1. ---
  2. - name: install - openwrt - Requirements
  3. include_tasks: install_openwrt_requirements.yml
  4. - name: install - openwrt - Check if openwrt_build_dir is present
  5. stat:
  6. path: "{{ openwrt_build_dir }}"
  7. register: openwrt_build_dir_initialized
  8. - name: install - openwrt - Clone openwrt
  9. git:
  10. repo: https://git.openwrt.org/openwrt/openwrt.git
  11. dest: "{{ openwrt_build_dir }}"
  12. single_branch: yes
  13. version: "{{ openwrt_version_tag }}"
  14. when: not openwrt_build_dir_initialized.stat.exists
  15. - name: install - openwrt - cp feeds.conf.default feeds.conf
  16. shell:
  17. cmd: cp feeds.conf.default feeds.conf
  18. args:
  19. chdir: "{{ openwrt_build_dir }}"
  20. notify: "update and install feeds"