Apt retry mechanism
This commit is contained in:
parent
cbdde70c2a
commit
946b3c973e
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue