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: