playbook update

This commit is contained in:
vvzvlad 2024-12-12 03:23:39 +03:00
parent 3f4b1b51c0
commit 1f5ba5ff58

View File

@ -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: