Update install-with-package.yml

Add a retry to the "Install Certbot." task which can fail if there is another process that has locked the package updater (e.g. `install 'certbot'' failed: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 11425
 (unattended-upgr)`)
This commit is contained in:
Chris Hills @ Brsk Limited (GB) 2023-12-06 09:26:24 +00:00 committed by GitHub
parent 08543f45b2
commit 3a34f2da8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,10 @@
---
- name: Install Certbot.
package: "name={{ certbot_package }} state=present"
register: certbot_installed_ok
delay: 5
retries: 5
until: certbot_installed_ok is success
- name: Set Certbot script variable.
set_fact: