add retires to all get_url actions
This commit is contained in:
parent
ad42872466
commit
502ea21fba
@ -71,6 +71,10 @@ matrix_container_global_registry_prefix: "docker.io/"
|
|||||||
matrix_container_retries_count: 10
|
matrix_container_retries_count: 10
|
||||||
matrix_container_retries_delay: 10
|
matrix_container_retries_delay: 10
|
||||||
|
|
||||||
|
# Each get_url will retry on failed attempt 10 times with delay of 10 seconds between each attempt.
|
||||||
|
matrix_geturl_retries_count: 10
|
||||||
|
matrix_geturl_retries_delay: 10
|
||||||
|
|
||||||
matrix_user_username: "matrix"
|
matrix_user_username: "matrix"
|
||||||
matrix_user_groupname: "matrix"
|
matrix_user_groupname: "matrix"
|
||||||
|
|
||||||
|
@ -70,6 +70,10 @@
|
|||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items: "{{ matrix_grafana_dashboard_download_urls_all }}"
|
with_items: "{{ matrix_grafana_dashboard_download_urls_all }}"
|
||||||
when: matrix_grafana_enabled|bool
|
when: matrix_grafana_enabled|bool
|
||||||
|
register: result
|
||||||
|
retries: "{{ matrix_geturl_retries_count }}"
|
||||||
|
delay: "{{ matrix_geturl_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
- name: Ensure matrix-grafana.service installed
|
- name: Ensure matrix-grafana.service installed
|
||||||
template:
|
template:
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: "matrix_prometheus_scraper_synapse_rules_enabled|bool"
|
when: "matrix_prometheus_scraper_synapse_rules_enabled|bool"
|
||||||
|
register: result
|
||||||
|
retries: "{{ matrix_geturl_retries_count }}"
|
||||||
|
delay: "{{ matrix_geturl_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
- name: Ensure prometheus.yml installed
|
- name: Ensure prometheus.yml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
mode: 0440
|
mode: 0440
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ matrix_geturl_retries_count }}"
|
||||||
|
delay: "{{ matrix_geturl_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_synapse_modules: |
|
matrix_synapse_modules: |
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
mode: 0440
|
mode: 0440
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ matrix_geturl_retries_count }}"
|
||||||
|
delay: "{{ matrix_geturl_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_synapse_password_providers_enabled: true
|
matrix_synapse_password_providers_enabled: true
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
mode: 0440
|
mode: 0440
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
register: result
|
||||||
|
retries: "{{ matrix_geturl_retries_count }}"
|
||||||
|
delay: "{{ matrix_geturl_retries_delay }}"
|
||||||
|
until: result is not failed
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_synapse_modules: |
|
matrix_synapse_modules: |
|
||||||
|
Loading…
Reference in New Issue
Block a user