Add variable to customize mongodb package state

This commit is contained in:
Nicolas Boutet 2019-05-15 15:39:46 +02:00
parent 45309059e9
commit 6ba243a486
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
--- ---
mongodb_package: mongodb-org mongodb_package: mongodb-org
mongodb_package_state: present
mongodb_version: "3.6" mongodb_version: "3.6"
mongodb_apt_keyserver: keyserver.ubuntu.com mongodb_apt_keyserver: keyserver.ubuntu.com
mongodb_apt_key_id: mongodb_apt_key_id:

View File

@ -55,7 +55,7 @@
name: name:
- "{{mongodb_package}}" - "{{mongodb_package}}"
- numactl - numactl
state: present state: "{{ mongodb_package_state }}"
update_cache: yes update_cache: yes
- name: Add systemd configuration if present - name: Add systemd configuration if present