websoft9/apps/roles/role_init/tasks/main.yml
2022-07-13 10:48:02 +08:00

21 lines
394 B
YAML

- name: Create credentials Folder
file:
path: /credentials
state: directory
- 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