mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-26 12:33:09 +08:00
28 lines
584 B
YAML
28 lines
584 B
YAML
- block:
|
|
- name: Create credentials Folder
|
|
file:
|
|
path: /credentials
|
|
state: directory
|
|
|
|
- name: Create a symbolic link of app
|
|
file:
|
|
src: "{{installpath}}/{{appname}}/.env"
|
|
dest: "/credentials/password.txt"
|
|
state: link
|
|
|
|
- name: Copy Init Script
|
|
template:
|
|
src: init.sh.jinja2
|
|
dest: /credentials/init.sh
|
|
mode: 0750
|
|
|
|
- name: Upload init-apps.service
|
|
template:
|
|
src: init-apps.service.jinja2
|
|
dest: /lib/systemd/system/init-apps.service
|
|
|
|
- name: Enable service
|
|
service:
|
|
name: init-apps
|
|
enabled: yes
|