♻: move koillection to app dir
All checks were successful
ansible-lint / lint-everything (push) Successful in 4s

This commit is contained in:
VC
2025-03-09 15:40:58 +01:00
parent bc8394105e
commit 6af8c3d8a6
4 changed files with 82 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
---
- name: Create API config dir
ansible.builtin.file:
state: directory
dest: "{{ koillection_data_home }}/config/jwt"
owner: www-data
group: www-data
mode: "0o750"
- name: Link JWT config dir
ansible.builtin.file:
state: link
src: "{{ koillection_data_home }}/config/jwt"
dest: "{{ koillection_app_home }}/config/jwt"
- name: Run lexik jwt
become: true
become_user: www-data
ansible.builtin.command:
cmd: "php bin/console lexik:jwt:generate-keypair"
chdir: "{{ koillection_app_home }}"
creates: "{{ koillection_app_home }}/config/jwt/private.pem"