From 2983a7291fc3b89d18b2d0232424cc58c6041675 Mon Sep 17 00:00:00 2001 From: t2d Date: Sun, 5 Nov 2023 14:51:52 +0100 Subject: [PATCH] Fix dumping of reserved names to file (#58) --- tasks/deployment.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/deployment.yml b/tasks/deployment.yml index b8a6136..4d254c2 100644 --- a/tasks/deployment.yml +++ b/tasks/deployment.yml @@ -74,22 +74,21 @@ - name: Dump custom reservedNames into file ansible.builtin.template: src: reserved_names.j2 - dest: "{{ userli_home }}/reserved_names" + dest: "{{ userli_symfony_path }}/reserved_names" owner: "{{ userli_user }}" group: "{{ userli_group }}" mode: "0660" - when: userli_extra_reserved_names.length > 0 + when: userli_extra_reserved_names | length > 0 - name: Load custom reservedNames into database - ansible.builtin.command: | - "bin/console app:reservednames:import --file={{ userli_home }}/reserved_names" + ansible.builtin.command: "bin/console app:reservednames:import --file=reserved_names" args: chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" become: true become_user: "{{ userli_user }}" - when: userli_extra_reserved_names.length > 0 + when: userli_extra_reserved_names | length > 0 register: __userli_reserved_names changed_when: __userli_reserved_names.rc != 0 failed_when: __userli_reserved_names.rc != 0