diff --git a/defaults/main.yml b/defaults/main.yml index 1b0d869..200583f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,8 +3,6 @@ mongos_packages: - mongodb-org-server - mongodb-org-mongos - mongodb-mongosh - - python3-pymongo - - python3-gnupg mongos_package_state: present mongos_service_name: mongos mongos_service_port: 27017 diff --git a/tasks/main.yml b/tasks/main.yml index 776e628..54c9bb3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,6 +11,13 @@ state: present when: ansible_os_family == "RedHat" +- name: Install python prerequisites + ansible.builtin.package: + name: + - python3-pymongo + - python3-gnupg + state: present + - name: Release package holds ansible.builtin.include_tasks: lock.yml vars: