Skip to content

Commit

Permalink
Fix dumping of reserved names to file (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
t2d authored Nov 5, 2023
1 parent 8d7ea84 commit 2983a72
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tasks/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2983a72

Please sign in to comment.