From 9e355f22536e4307954d9a18c1f5f8132263425e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor?= Date: Thu, 19 Sep 2024 19:55:23 +0200 Subject: [PATCH] Update playbooks/update-yum-dima.yaml --- playbooks/update-yum-dima.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/playbooks/update-yum-dima.yaml b/playbooks/update-yum-dima.yaml index db0f16f..8bdfb47 100644 --- a/playbooks/update-yum-dima.yaml +++ b/playbooks/update-yum-dima.yaml @@ -13,4 +13,21 @@ - mysql - mariadb-server - mariadb - when: ansible_os_family == "RedHat" \ No newline at end of file + when: ansible_os_family == "RedHat" + - name: Wait until HTTP status is 200 of ISPmanager + uri: + url: 'https://127.0.0.1:1500/ispmgr' + return_content: no + validate_certs: no + status_code: + - 200 + until: uri_output.status == 200 + retries: 5 # Retries for 24 * 5 seconds = 120 seconds = 2 minutes + delay: 5 # Every 5 seconds + register: uri_output +- name: Update custom script from git + ansible.builtin.git: + repo: https://dimahu:Dima4026@git.sandros.hu/sandros/dimaserverconfigurer.git + dest: /root/dimaserverconfigurer + single_branch: yes + version: master \ No newline at end of file