Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix: correctly configure retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Graber committed Oct 19, 2023
1 parent a12ebda commit 45916e0
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/ad_hoc_reporting/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- install:system-requirements
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_2_6/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
id: "{{ MONGODB_APT_KEY }}"
keyserver: "{{ MONGODB_APT_KEYSERVER }}"
state: present
register: add_mongo_signing_key
retries: 3
tags:
- install
- install:base
until: add_mongo_signing_key is succeeded

- name: Add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_3_2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_3_4/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_3_6/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_4_0/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_4_2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_4_4/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- "install"
- "install:app-requirements"
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/mongo_client/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
url: "https://www.mongodb.org/static/pgp/server-{{ MONGO_VERSION_MAJOR_MINOR }}.asc"
state: present
retries: 3
register: add_mongo_signing_key
tags:
- install
- install:system-requirements
until: add_mongo_signing_key is succeeded

- name: add the mongodb repo to the sources list
apt_repository:
Expand Down
2 changes: 2 additions & 0 deletions playbooks/roles/python/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
- name: Install packages
raw: "apt-get install -qq {{ item }}"
with_items: "{{ python_packages }}"
register: install_packages
retries: 10
delay: 10
until: install_packages is succeeded

0 comments on commit 45916e0

Please sign in to comment.