Skip to content

Update the role for Ansible>12 - #8

Merged
medanthelinium merged 4 commits into
masterfrom
remove-deprecated-features
Feb 11, 2026
Merged

medanthelinium merged 4 commits into
masterfrom
remove-deprecated-features

Conversation

@pilz0

@pilz0 pilz0 commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the Ansible role to remove deprecated Ansible features and modernize the code to use current best practices. The changes align with Ansible's recommended patterns for accessing facts and module parameters.

Changes:

  • Migrated from deprecated top-level Ansible fact variables (like ansible_system, ansible_os_family, ansible_distribution_release) to the ansible_facts dictionary approach
  • Updated PostgreSQL module parameters from deprecated db to login_db
  • Removed redundant vars. prefix in variable references
  • Added Debian 13 to supported operating systems and updated documentation generation comments

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tasks/users.yaml Updated PostgreSQL user module to use login_db instead of deprecated db parameter; removed redundant login_user parameter
tasks/main.yaml Migrated conditional statements to use ansible_facts dictionary instead of deprecated top-level variables
defaults/main.yaml Updated variable references and Jinja2 conditionals to use ansible_facts dictionary; removed redundant vars. prefix
README.md Added documentation generation notice and Debian 13 to supported OS list
.aar-doc.yml Updated template to include documentation generation notice and Debian 13 support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pilz0
pilz0 requested a review from medanthelinium February 6, 2026 11:50

@medanthelinium medanthelinium left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Please also feel free to remove meta/.requirements.yml similar to the other roles.

@pilz0
pilz0 requested a review from medanthelinium February 9, 2026 10:21
@medanthelinium medanthelinium changed the title fix: remove deprecated ansible features Update the role for Ansible>12 Feb 11, 2026
@medanthelinium
medanthelinium merged commit c292e51 into master Feb 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants