diff --git a/defaults/main.yml b/defaults/main.yml index ff60667..7a545ac 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,7 +2,6 @@ mongodb_package: mongodb-org mongodb_package_state: present -mongodb_package_version: "4.0.9" mongodb_version: "4.0" mongodb_apt_keyserver: keyserver.ubuntu.com mongodb_apt_key_id: diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index a85c59c..76c0a2f 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -51,17 +51,12 @@ with_items: "{{ mongodb_major_version }}" when: mongodb_package == 'mongodb-org' -- name: Install MongoDB package +- name: Install MongoDB and numactl packages apt: - name: "{{ mongodb_package }}" - state: "{{ mongodb_package_version is defined | ternary('present', 'latest') }}" - version: "{{ mongodb_package_version | default(omit) }}" - update_cache: true - -- name: Install numactl package - apt: - name: numactl - state: present + name: + - "{{ mongodb_package }}" + - numactl + state: "{{ mongodb_package_state }}" update_cache: true - name: Add systemd configuration if present