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

missing php_extensions_default when provisioning sshd #1532

Closed
aymanrady opened this issue Jul 30, 2024 · 4 comments · Fixed by #1544
Closed

missing php_extensions_default when provisioning sshd #1532

aymanrady opened this issue Jul 30, 2024 · 4 comments · Fixed by #1544
Labels

Comments

@aymanrady
Copy link

aymanrady commented Jul 30, 2024

Version

1.22.1

What did you expect to happen?

The provisioning to complete without issues

What actually happens?

Failure in [common : Verify dict format for apt package component variables]

Steps to reproduce

trellis provision --tags=sshd staging

System info

Ubuntu 20.04

Log output

TASK [common : Verify dict format for apt package component variables] *********
fatal: [x.x.x.x]: FAILED! => {"msg": "The conditional check 'package_vars_wrong_format | count' failed. The error was: error while evaluating conditional (package_vars_wrong_format | count): [{% for k,v in package_vars.items() | list if v | type_debug != 'dict' %}'{{ k }}',{% endfor %}]: {'apt_packages_default': '{{ apt_packages_default }}', 'apt_packages_custom': '{{ apt_packages_custom }}', 'memcached_packages_default': '{{ memcached_packages_default }}', 'memcached_packages_custom': '{{ memcached_packages_custom }}', 'php_extensions_default': '{{ php_extensions_default }}', 'php_extensions_custom': '{{ php_extensions_custom }}', 'sshd_packages_default': '{{ sshd_packages_default }}', 'sshd_packages_custom': '{{ sshd_packages_custom }}'}: 'php_extensions_default' is undefined\n\nThe error appears to be in '/home/me/project/trellis/roles/common/tasks/main.yml': line 56, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Verify dict format for apt package component variables\n  ^ here\n"}

Please confirm this isn't a support request.

Yes

@aymanrady aymanrady added the bug label Jul 30, 2024
@aymanrady
Copy link
Author

The include php vars task is not running

- name: Import PHP version specific vars
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- '{{ php_version }}.yml'
- '7.4.yml'
paths:
- "{{ playbook_dir }}/roles/php/vars/"
tags: [php, memcached]

@swalkinshaw
Copy link
Member

What's php_version set to in group_vars/all/main.yml. Here's the default:

php_version: "8.2"

@aymanrady
Copy link
Author

php_version is the default value, it's that the Import PHP version specific vars task is not tagged sshd

@swalkinshaw
Copy link
Member

Ah sorry I missed that at first. See #1544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants