Fix: add a retry statement to remote package tasks
Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
This commit is contained in:
parent
4555ca782b
commit
b55a2ee047
14 changed files with 51 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
||||||
name: apt-listchanges
|
name: apt-listchanges
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Send email when there is something new
|
# Send email when there is something new
|
||||||
- name: Configure apt-listchanges
|
- name: Configure apt-listchanges
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
- tree # create a graphical tree of files
|
- tree # create a graphical tree of files
|
||||||
- ipython # better Python shell
|
- ipython # better Python shell
|
||||||
- acl # for Ansible become support
|
- acl # for Ansible become support
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Pimp my server
|
# Pimp my server
|
||||||
- name: Customize motd
|
- name: Customize motd
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
name: molly-guard
|
name: molly-guard
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Always ask for hostname
|
# Always ask for hostname
|
||||||
- name: Configure molly-guard
|
- name: Configure molly-guard
|
||||||
|
|
|
@ -21,3 +21,6 @@
|
||||||
- npm
|
- npm
|
||||||
- build-essential
|
- build-essential
|
||||||
- zlib1g-dev # uws module
|
- zlib1g-dev # uws module
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -24,3 +24,6 @@
|
||||||
apt:
|
apt:
|
||||||
name: dokuwiki
|
name: dokuwiki
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -21,3 +21,6 @@
|
||||||
- git
|
- git
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
- nslcd
|
- nslcd
|
||||||
- libnss-ldapd
|
- libnss-ldapd
|
||||||
- libpam-ldapd
|
- libpam-ldapd
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Reduce LDAP load
|
# Reduce LDAP load
|
||||||
# For the moment it is broken on Stretch when using PHP7.3
|
# For the moment it is broken on Stretch when using PHP7.3
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
package:
|
package:
|
||||||
name: sudo
|
name: sudo
|
||||||
state: present
|
state: present
|
||||||
|
register: package_result
|
||||||
|
retries: 3
|
||||||
|
until: package_result is succeeded
|
||||||
|
|
||||||
# Set sudo group
|
# Set sudo group
|
||||||
- name: Configure sudoers
|
- name: Configure sudoers
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
name: slapd
|
name: slapd
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# What is written after is really not a nice way to install a schema
|
# What is written after is really not a nice way to install a schema
|
||||||
# because the LDAP is being flushed away always...
|
# because the LDAP is being flushed away always...
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
- name: Install mxisd
|
- name: Install mxisd
|
||||||
apt:
|
apt:
|
||||||
deb: https://github.com/kamax-matrix/mxisd/releases/download/v{{ mxisd_version }}/mxisd_{{ mxisd_version }}_all.deb
|
deb: https://github.com/kamax-matrix/mxisd/releases/download/v{{ mxisd_version }}/mxisd_{{ mxisd_version }}_all.deb
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
- name: Configure mxisd
|
- name: Configure mxisd
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
apt:
|
apt:
|
||||||
name: apt-transport-https
|
name: apt-transport-https
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Add the repository into source list
|
# Add the repository into source list
|
||||||
- name: Configure riot repository
|
- name: Configure riot repository
|
||||||
|
@ -15,17 +18,26 @@
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://riot.im/packages/debian/repo-key.asc
|
url: https://riot.im/packages/debian/repo-key.asc
|
||||||
id: E019645248E8F4A1
|
id: E019645248E8F4A1
|
||||||
|
register: apt_key_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_key_result is succeeded
|
||||||
|
|
||||||
# Install riot
|
# Install riot
|
||||||
- name: Install riot-web
|
- name: Install riot-web
|
||||||
apt:
|
apt:
|
||||||
name: riot-web
|
name: riot-web
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Install nginx
|
# Install nginx
|
||||||
- name: Install nginx
|
- name: Install nginx
|
||||||
apt:
|
apt:
|
||||||
name: nginx
|
name: nginx
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Configure nginx
|
# Configure nginx
|
||||||
- name: Configure nginx
|
- name: Configure nginx
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
name: matrix-synapse
|
name: matrix-synapse
|
||||||
update_cache: true
|
update_cache: true
|
||||||
default_release: stretch-backports
|
default_release: stretch-backports
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
- name: Configure matrix-synapse
|
- name: Configure matrix-synapse
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
apt:
|
apt:
|
||||||
name: nginx
|
name: nginx
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
# Install sites
|
# Install sites
|
||||||
- name: Configure NGINX sites
|
- name: Configure NGINX sites
|
||||||
|
|
|
@ -9,3 +9,6 @@
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 86400 # one day
|
cache_valid_time: 86400 # one day
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
Loading…
Reference in a new issue