Skip to content

Fails to handle roles/custom/matrix-static-files/tasks/install.yml #4216

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

Open
whowantsmybigdata opened this issue Mar 26, 2025 · 2 comments
Open
Labels
question This issue is a question related to installation

Comments

@whowantsmybigdata
Copy link

Matrix Server:

  • OS: Raspbian Bookworm
  • Architecture arm64

Ansible:
If your problem appears to be with Ansible, tell us:

  • where you run Ansible — on the server itself
  • what version of Ansible you're running (see ansible --version):
    Ansible community version 7.7.0,ansible [core 2.14.18],python version = 3.11.2,jinja version = 3.1.2,libyaml = True

Problem description:

The task includes an option with an undefined variable. The error was: 'matrix_static_files_public_well_known_element_path' is undefined. 'matrix_static_files_public_well_known_element_path' is undefined
  
    The error appears to be in '...roles/custom/matrix-static-files/tasks/install.yml': line 24, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
    # This is not necessary anymore, so we're cleaning it up.
    - name: Ensure matrix-static-files element path doesn't exist
      ^ here

Tried git pull everything new, updating roles, restarting and rerunning...

Please help...

@whowantsmybigdata whowantsmybigdata added the question This issue is a question related to installation label Mar 26, 2025
@whowantsmybigdata
Copy link
Author

Don't know if its really without consequences but I just commented out the complete task (as the comment above mentions its due to be removed anyway) and now the playbooks runs through without issue. As far as I tested around I couldnt see any issues so far...
Is this just a workaround or should one (or me) just remove the lines completely and file a pr?

@whowantsmybigdata
Copy link
Author

now, there is a new error in the same file:

ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML.
  could not find expected ':'

The error appears to be in 'roles/custom/matrix-static-files/tasks/install.yml': line 17, column 12, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

<<<<<<< Updated upstream
    - {path: "{{ matrix_static_files_base_path }}", when: true}
           ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question related to installation
Projects
None yet
Development

No branches or pull requests

1 participant