Skip to content

Conversation

@MohitSainiS
Copy link
Contributor

Update mongo db version 7.0.21 for ubuntu 22.04

@MohitSainiS MohitSainiS self-assigned this Jun 26, 2025
Copy link

@sharvarikhamkar1304 sharvarikhamkar1304 Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Use ansible.builtin.pip instead of pip

  • get_url + signed-by instead of apt_key

  • signed-by=/usr/share/keyrings/... in the repo: line for secure APT key

Copy link

@sharvarikhamkar1304 sharvarikhamkar1304 Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • prefer downloading key directly.

  • use secret for password

  • perform ansible lint

Copy link

@sharvarikhamkar1304 sharvarikhamkar1304 Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • for mongo_authentication_key you can use lookup

  • mongo_version you already use in defaults no need to mention - avoid duplication

  • Hardcoded credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants