From 0e0c7c6d2c34753f3614b83a92ebc79ba9609036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20F=C3=B6lling?= Date: Wed, 29 Jun 2022 12:46:37 +0200 Subject: [PATCH 1/2] tasks/debian: add all mongo packages for upgrading --- tasks/install.debian.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index 6f578774..e89def2b 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -34,9 +34,16 @@ - name: Install MongoDB package apt: - name: "{{ mongodb_package }}{% if (mongodb_version | length > 3) %}={{ mongodb_version }}{% endif %}" + name: "{{ item }}{% if (mongodb_version | length > 3) %}={{ mongodb_version }}{% endif %}" state: "{{ mongodb_package_state }}" update_cache: true + with_items: + - "{{ mongodb_package }}" + - "{{ mongodb_package }}-database-tools-extra" + - "{{ mongodb_package }}-mongos" + - "{{ mongodb_package }}-server" + - "{{ mongodb_package }}-shell" + - "{{ mongodb_package }}-tools" - name: Check if NUMA is available on host command: "ls -1 /proc/1/numa_maps" From 2f191744ed733bc1086b555a941e3ef8b3953c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20F=C3=B6lling?= Date: Wed, 29 Jun 2022 12:47:20 +0200 Subject: [PATCH 2/2] tasks/debian: notify mongo restart on package change --- tasks/install.debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index e89def2b..c471e224 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -44,6 +44,7 @@ - "{{ mongodb_package }}-server" - "{{ mongodb_package }}-shell" - "{{ mongodb_package }}-tools" + notify: mongodb restart - name: Check if NUMA is available on host command: "ls -1 /proc/1/numa_maps"