[grafana] Fix missing retry
parent
8c7d6c3daa
commit
fe2061810c
|
@ -4,12 +4,18 @@
|
||||||
name: apt-transport-https
|
name: apt-transport-https
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
- name: Import Grafana GPG signing key
|
- name: Import Grafana GPG signing key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://packages.grafana.com/gpg.key
|
url: https://packages.grafana.com/gpg.key
|
||||||
state: present
|
state: present
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
register: apt_key_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_key_result is succeeded
|
||||||
|
|
||||||
- name: Add Grafana repository
|
- name: Add Grafana repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
@ -21,6 +27,9 @@
|
||||||
apt:
|
apt:
|
||||||
name: grafana
|
name: grafana
|
||||||
state: present
|
state: present
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
- name: Configure Grafana
|
- name: Configure Grafana
|
||||||
ini_file:
|
ini_file:
|
||||||
|
@ -28,7 +37,7 @@
|
||||||
section: "{{ item.section }}"
|
section: "{{ item.section }}"
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
mode: 640
|
mode: 0640
|
||||||
loop:
|
loop:
|
||||||
- section: server
|
- section: server
|
||||||
option: root_url
|
option: root_url
|
||||||
|
|
Loading…
Reference in New Issue