websoft9/apps/roles/role_init/tasks/main.yml

21 lines
394 B
YAML
Raw Normal View History

2022-07-13 10:48:02 +08:00
- name: Create credentials Folder
file:
path: /credentials
state: directory
2022-07-11 14:03:55 +08:00
- name: Copy Init Script
template:
src: init.sh.jinja2
dest: /credentials/init.sh
mode: 0750
2022-07-11 14:40:24 +08:00
2022-07-11 14:03:55 +08:00
- 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