Skip to content

Commit

Permalink
Split prerequisites install to standalone task (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Jan 12, 2024
1 parent 3ae5fc2 commit 5c09dd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5c09dd8

Please sign in to comment.