matrix-docker-ansible-deploy icon indicating copy to clipboard operation
matrix-docker-ansible-deploy copied to clipboard

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

Open whowantsmybigdata opened this issue 8 months ago • 3 comments

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 avatar Mar 26 '25 13:03 whowantsmybigdata

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 avatar Mar 29 '25 07:03 whowantsmybigdata

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 }}"

whowantsmybigdata avatar Apr 01 '25 09:04 whowantsmybigdata

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. To exempt the issue from being marked as stale again due to inactivity, add "confirmed" label.

github-actions[bot] avatar Jun 01 '25 03:06 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity. If this issue is still reproduced, feel free to provide the issue with up-to-date information.

github-actions[bot] avatar Jun 09 '25 03:06 github-actions[bot]