Skip to content

Commit

Permalink
TASK [custom/matrix-backup-s3 : Check existence of matrix-postgres-ba…
Browse files Browse the repository at this point in the history
…ckup-s3 service] *******************************************************************************************************************************************************************************************************************************************************************************************************

fatal: [matrix.iopa.duckdns.org]: FAILED! =>
  msg: |-
    The conditional check 'not matrix-postgres-backup-s3_enabled | bool' failed. The error was: error while evaluating conditional (not matrix-postgres-backup-s3_enabled | bool): 'matrix' is undefined. 'matrix' is undefined

    The error appears to be in '/home/doof/gitrepo/matrix-docker-ansible-deploy/roles/custom/matrix-backup-s3/tasks/setup_uninstall.yml': line 3, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

    - name: Check existence of matrix-postgres-backup-s3 service
      ^ here
ERROR! Invalid variable name in 'register' specified: 'matrix-postgres-backup-s3_service_stat'
  • Loading branch information
doof committed Jul 7, 2024
1 parent 41a8606 commit f23e6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/custom/matrix-backup-s3/tasks/setup_uninstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.stat:
path: "{{ devture_systemd_docker_base_systemd_path }}/{{matrix_backup_postgres_s3_identifier}}.service"

Check warning on line 5 in roles/custom/matrix-backup-s3/tasks/setup_uninstall.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

jinja[spacing]

Jinja2 spacing could be improved: {{ devture_systemd_docker_base_systemd_path }}/{{matrix_backup_postgres_s3_identifier}}.service -> {{ devture_systemd_docker_base_systemd_path }}/{{ matrix_backup_postgres_s3_identifier }}.service
register: matrix-postgres-backup-s3_service_stat
when: "not matrix-postgres-backup-s3_enabled | bool"
when: "not matrix_backup_postgres_s3_enabled | bool"

- when: matrix-postgres-backup-s3_service_stat.stat.exists | bool
block:
Expand Down

0 comments on commit f23e6eb

Please sign in to comment.