From 1f5ba5ff583f8f2f6f9853b3020d1427ec9b34a8 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 12 Dec 2024 03:23:39 +0300 Subject: [PATCH] playbook update --- playbook.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/playbook.yml b/playbook.yml index 5b0f125..54abd59 100644 --- a/playbook.yml +++ b/playbook.yml @@ -114,7 +114,31 @@ update_cache: true async: "{{ 60 * 20 }}" poll: 30 + + - name: Install grist-api and colorama (attempt 1) + ansible.builtin.command: pip3 install grist-api colorama --break-system-packages + args: + chdir: "{{ ansible_env.HOME }}/node" + changed_when: false + register: pip_install_1 + ignore_errors: true + - name: Install grist-api and colorama (attempt 2) + ansible.builtin.command: pip3 install grist-api colorama --break-system-packages + args: + chdir: "{{ ansible_env.HOME }}/node" + changed_when: false + register: pip_install_2 + ignore_errors: true + when: pip_install_1 is failed + + - name: Install grist-api and colorama (attempt 3) + ansible.builtin.command: pip3 install grist-api colorama --break-system-packages + args: + chdir: "{{ ansible_env.HOME }}/node" + changed_when: false + when: pip_install_1 is failed and pip_install_2 is failed + - name: Install Docker ansible.builtin.shell: curl -fsSL https://get.docker.com | bash changed_when: false @@ -299,11 +323,6 @@ async: "{{ 60 * 80 }}" poll: "{{ 60 }}" - - name: Install grist-api and colorama - ansible.builtin.command: pip3 install grist-api colorama --break-system-packages - args: - chdir: "{{ ansible_env.HOME }}/node" - changed_when: false - name: Copy checker service file ansible.builtin.copy: