Fix: add a retry statement to remote package tasks

Signed-off-by: Hadrien Patte <hadrien.patte@protonmail.com>
This commit is contained in:
Hadrien Patte 2019-03-03 19:28:57 +01:00
parent 4555ca782b
commit b55a2ee047
No known key found for this signature in database
GPG key ID: 0954F2874A54F4B1
14 changed files with 51 additions and 0 deletions

View file

@ -6,6 +6,9 @@
name: apt-listchanges
state: present
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
# Send email when there is something new
- name: Configure apt-listchanges

View file

@ -19,6 +19,9 @@
- tree # create a graphical tree of files
- ipython # better Python shell
- acl # for Ansible become support
register: apt_result
retries: 3
until: apt_result is succeeded
# Pimp my server
- name: Customize motd

View file

@ -6,6 +6,9 @@
name: molly-guard
state: present
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
# Always ask for hostname
- name: Configure molly-guard

View file

@ -21,3 +21,6 @@
- npm
- build-essential
- zlib1g-dev # uws module
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -24,3 +24,6 @@
apt:
name: dokuwiki
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -21,3 +21,6 @@
- git
- nodejs
- npm
register: apt_result
retries: 3
until: apt_result is succeeded

View file

@ -9,6 +9,9 @@
- nslcd
- libnss-ldapd
- libpam-ldapd
register: apt_result
retries: 3
until: apt_result is succeeded
# Reduce LDAP load
# For the moment it is broken on Stretch when using PHP7.3

View file

@ -11,6 +11,9 @@
package:
name: sudo
state: present
register: package_result
retries: 3
until: package_result is succeeded
# Set sudo group
- name: Configure sudoers

View file

@ -5,6 +5,9 @@
name: slapd
state: present
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
# because the LDAP is being flushed away always...

View file

@ -2,6 +2,9 @@
- name: Install mxisd
apt:
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
template:

View file

@ -4,6 +4,9 @@
apt:
name: apt-transport-https
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
# Add the repository into source list
- name: Configure riot repository
@ -15,17 +18,26 @@
apt_key:
url: https://riot.im/packages/debian/repo-key.asc
id: E019645248E8F4A1
register: apt_key_result
retries: 3
until: apt_key_result is succeeded
# Install riot
- name: Install riot-web
apt:
name: riot-web
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
# Install nginx
- name: Install nginx
apt:
name: nginx
register: apt_result
retries: 3
until: apt_result is succeeded
# Configure nginx
- name: Configure nginx

View file

@ -4,6 +4,9 @@
name: matrix-synapse
update_cache: true
default_release: stretch-backports
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure matrix-synapse
template:

View file

@ -4,6 +4,9 @@
apt:
name: nginx
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
# Install sites
- name: Configure NGINX sites

View file

@ -9,3 +9,6 @@
upgrade: dist
update_cache: true
cache_valid_time: 86400 # one day
register: apt_result
retries: 3
until: apt_result is succeeded