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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,3 +21,6 @@
|
|||
- npm
|
||||
- build-essential
|
||||
- zlib1g-dev # uws module
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
|
|
@ -24,3 +24,6 @@
|
|||
apt:
|
||||
name: dokuwiki
|
||||
update_cache: true
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
|
|
@ -21,3 +21,6 @@
|
|||
- git
|
||||
- nodejs
|
||||
- npm
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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...
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue