You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
551 B
18 lines
551 B
--- |
|
|
|
- name: Get {{ app_name }} download page |
|
uri: |
|
url: "{{ app_page }}" |
|
return_content: yes |
|
register: app_www |
|
|
|
- name: Set {{ app_name }} extractor regexp |
|
set_fact: app_regexp={{ app_link_regexp }} |
|
when: app_link_regexp != "none" |
|
|
|
- name: Set {{ app_name }} extractor regexp |
|
set_fact: app_regexp="href=[^ ]*\.dmg" |
|
when: app_link_regexp == "none" |
|
|
|
- name: Get {{ app_name }} download URL |
|
set_fact: dmg_archive_url={{ app_www.content | regex_search(app_regexp, '\\0') | first | regex_replace(app_link_pattern, app_link_schema) }}
|
|
|