mirror of
https://github.com/kasmtech/ansible
synced 2024-12-04 17:19:11 +00:00
KASM-1942 Retry Kasm Workspaces install if it fails with dpkg lock error
This commit is contained in:
parent
b3bd8626b0
commit
29acddd4bb
3 changed files with 12 additions and 3 deletions
|
@ -10,5 +10,8 @@
|
|||
|
||||
- name: Install agent role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S agent -e -p {{ target_ip }} -m {{ web_ip }} -M {{ manager_token }}"
|
||||
register: web_install
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
delay: 10
|
||||
until: install_output is success or ('Failed to lock apt for exclusive operation' not in install_output.stderr and '/var/lib/dpkg/lock' not in install_output.stderr)
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
- name: Install database role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S db -e -Q {{database_password}} -R {{redis_password}} -U {{user_password}} -P {{admin_password}} -M {{manager_token}}"
|
||||
register: db_install
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
delay: 10
|
||||
until: install_output is success or ('Failed to lock apt for exclusive operation' not in install_output.stderr and '/var/lib/dpkg/lock' not in install_output.stderr)
|
||||
|
|
|
@ -12,5 +12,8 @@
|
|||
|
||||
- name: Install web role
|
||||
command: "bash {{ tempdir.path }}/kasm_release/install.sh -S app -e -q {{ db_ip }} -Q {{ database_password }} -R {{ redis_password }} -n {{ target_ip }}"
|
||||
register: web_install
|
||||
register: install_output
|
||||
become: true
|
||||
retries: 20
|
||||
delay: 10
|
||||
until: install_output is success or ('Failed to lock apt for exclusive operation' not in install_output.stderr and '/var/lib/dpkg/lock' not in install_output.stderr)
|
||||
|
|
Loading…
Reference in a new issue