templates/packer: add worker-executor service to image
This commit is contained in:
parent
a9066ee793
commit
d5fd1bbbf0
1 changed files with 10 additions and 0 deletions
|
|
@ -24,3 +24,13 @@
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ playbook_dir }}/roles/common/files/worker-initialization-scripts/*"
|
- "{{ playbook_dir }}/roles/common/files/worker-initialization-scripts/*"
|
||||||
|
|
||||||
|
- name: Copy worker executor service
|
||||||
|
copy:
|
||||||
|
src: "{{ playbook_dir }}/roles/common/files/worker-executor.service"
|
||||||
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
|
- name: Enable worker executor service
|
||||||
|
systemd:
|
||||||
|
name: worker-executor.service
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue