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: 'Invalid variable name in ''register'' specified: ''matrix-postgres-backup-s3_service_stat'''
ERROR! Invalid variable name in 'register' specified: 'matrix-postgres-backup-s3_service_stat
  • Loading branch information
doof committed Jul 7, 2024
1 parent f23e6eb commit 0d6a019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/custom/matrix-backup-s3/tasks/setup_uninstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
- name: Check existence of matrix-postgres-backup-s3 service
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
register: matrix_postgres_backup_s3_service_stat
when: "not matrix_backup_postgres_s3_enabled | bool"

- when: matrix-postgres-backup-s3_service_stat.stat.exists | bool
- when: matrix_postgres_backup_s3_service_stat.stat.exists | bool
block:
- name: Ensure matrix-postgres-backup-s3.timer is stopped
ansible.builtin.service:
Expand Down

0 comments on commit 0d6a019

Please sign in to comment.