Apt retry mechanism

This commit is contained in:
otthorn 2021-01-28 00:07:23 +01:00
parent cbdde70c2a
commit 946b3c973e

View file

@ -2,6 +2,7 @@
# Install and configure Dovecot # Install and configure Dovecot
- name: Install Dovecot - name: Install Dovecot
apt: apt:
update_cache: true
name: name:
- dovecot-core - dovecot-core
- dovecot-imapd - dovecot-imapd
@ -9,7 +10,9 @@
- dovecot-lmtpd - dovecot-lmtpd
- dovecot-ldap - dovecot-ldap
- dovecot-pop3d - dovecot-pop3d
update_cache: true register: apt_result
retries: 3
until: apt_result is succeeded
# Create the vmail user with UID and GID 5000 # Create the vmail user with UID and GID 5000
- name: Create vmail user - name: Create vmail user