playbook update
This commit is contained in:
parent
3f4b1b51c0
commit
1f5ba5ff58
29
playbook.yml
29
playbook.yml
@ -114,7 +114,31 @@
|
|||||||
update_cache: true
|
update_cache: true
|
||||||
async: "{{ 60 * 20 }}"
|
async: "{{ 60 * 20 }}"
|
||||||
poll: 30
|
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
|
- name: Install Docker
|
||||||
ansible.builtin.shell: curl -fsSL https://get.docker.com | bash
|
ansible.builtin.shell: curl -fsSL https://get.docker.com | bash
|
||||||
changed_when: false
|
changed_when: false
|
||||||
@ -299,11 +323,6 @@
|
|||||||
async: "{{ 60 * 80 }}"
|
async: "{{ 60 * 80 }}"
|
||||||
poll: "{{ 60 }}"
|
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
|
- name: Copy checker service file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user