Skip to content

Commit 6ba243a

Browse files
committed
Add variable to customize mongodb package state
1 parent 4530905 commit 6ba243a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22

33
mongodb_package: mongodb-org
4+
mongodb_package_state: present
45
mongodb_version: "3.6"
56
mongodb_apt_keyserver: keyserver.ubuntu.com
67
mongodb_apt_key_id:

tasks/install.debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
name:
5656
- "{{mongodb_package}}"
5757
- numactl
58-
state: present
58+
state: "{{ mongodb_package_state }}"
5959
update_cache: yes
6060

6161
- name: Add systemd configuration if present

0 commit comments

Comments
 (0)