Skip to content

Commit

Permalink
Add retry for Netdata install
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 1, 2023
1 parent 3137bc7 commit ae47ae4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions roles/netdata/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
---

- block:

- name: Download the installation script "kickstart.sh"
ansible.builtin.get_url:
url: https://my-netdata.io/kickstart.sh
dest: /tmp/kickstart.sh
mode: +x
register: get_url_status
until: get_url_status is success
delay: 10
retries: 3

- name: Install Netdata
ansible.builtin.command: /tmp/kickstart.sh {{ netdata_install_options | default('--dont-wait') }}
register: install_status
until: install_status is success
delay: 10
retries: 3

- name: Configure Netdata
ansible.builtin.template:
Expand All @@ -23,7 +30,6 @@
ansible.builtin.service:
name: netdata
state: restarted

environment: "{{ proxy_env | default({}) }}"
tags: netdata

Expand Down

0 comments on commit ae47ae4

Please sign in to comment.