♻: move koillection to app dir
All checks were successful
ansible-lint / lint-everything (push) Successful in 4s
All checks were successful
ansible-lint / lint-everything (push) Successful in 4s
This commit is contained in:
23
roles/koillection/tasks/api.yml
Normal file
23
roles/koillection/tasks/api.yml
Normal 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"
|
Reference in New Issue
Block a user