Skip to content

Use Debian PHP version for pgsql package - #1

Open
93jun wants to merge 1 commit into
geerlingguy:masterfrom
93jun:fix-debian-pgsql-package-version
Open

Use Debian PHP version for pgsql package#1
93jun wants to merge 1 commit into
geerlingguy:masterfrom
93jun:fix-debian-pgsql-package-version

Conversation

@93jun

@93jun 93jun commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Use the Debian PHP version selected by geerlingguy.php when building the default PostgreSQL extension package name.

Details

The role depends on geerlingguy.php, which sets php_default_version_debian per distribution release. The php-pgsql role currently defaults Debian-family systems to php8.3-pgsql unconditionally.

On Ubuntu 22.04, geerlingguy.php installs/configures PHP 8.1, but this role then tries to install php8.3-pgsql, which is not available from the default package repositories.

This change makes the default Debian package follow the selected PHP version:

php{{ php_default_version_debian }}-pgsql

Validation

  • Reproduced the Ubuntu 22.04 failure with the current default:

    No package matching 'php8.3-pgsql' is available
    
  • Re-ran the same Ubuntu 22.04 role path after this change with php_enable_webserver: false for a minimal container, and the play completed successfully:

    failed=0
    
  • Ran git diff --check.

  • Parsed vars/Debian.yml as YAML successfully.

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.

1 participant