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

16 lines
380 B
YAML
Raw Normal View History

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
2023-03-02 13:50:39 +08:00
- name: check init-apps.service
2023-03-02 12:23:23 +08:00
shell: |
cat /lib/systemd/system/init-apps.service > /tmp/service
2023-03-02 13:50:39 +08:00
systemctl enable init-apps.service