Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Ubuntu 22.04 and MongoDB 6.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ galaxy_info:
- xenial
- bionic
- focal
- jammy
- name: Debian
versions:
- jessie
Expand Down
14 changes: 12 additions & 2 deletions tasks/install.debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,21 @@
- ansible_distribution_release == "focal"
tags: [mongodb, mongos, mongodb-install, mongos-install]

- name: Fail When Using Wrong mongodb_version Variable with Ubuntu 22.04 (Jammy)
fail:
msg: "mongodb_version variable should be '6.0' for Ubuntu 22.04 (Jammy)"
when:
- mongodb_package == 'mongodb-org'
- mongos_package == 'mongodb-org-mongos'
- mongodb_major_version is not regex("6.0")
- ansible_distribution_release == "jammy"
tags: [mongodb, mongos, mongodb-install, mongos-install]

- name: Fail When Using Wrong ansible_distribution_release
fail:
msg: "ansible_distribution_release should be 'Debian 8 (Jessie)' or 'Debian 9 (Stretch)' or 'Debian 10 (Buster)' or 'Debian 11 (Bullseye)' or 'Ubuntu 16.04 (Xenial)' or 'Ubuntu 18.04 (Bionic)' or 'Ubuntu 20.04 (Focal)'"
msg: "ansible_distribution_release should be 'Debian 8 (Jessie)' or 'Debian 9 (Stretch)' or 'Debian 10 (Buster)' or 'Debian 11 (Bullseye)' or 'Ubuntu 16.04 (Xenial)' or 'Ubuntu 18.04 (Bionic)' or 'Ubuntu 20.04 (Focal)' or 'Ubuntu 22.04 (Jammy)'"
when:
- ansible_distribution_release is not regex("xenial|stretch|buster|bullseye|bionic|focal")
- ansible_distribution_release is not regex("xenial|stretch|buster|bullseye|bionic|focal|jammy")
tags: [mongodb, mongos, mongodb-install, mongos-install]

- name: Disable Transparent Huge Pages on Systemd Systems
Expand Down