Files
ansible/roles/koillection/tasks/api.yml
VC 6af8c3d8a6
All checks were successful
ansible-lint / lint-everything (push) Successful in 4s
♻: move koillection to app dir
2025-03-09 15:40:58 +01:00

24 lines
606 B
YAML

---
- 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"