Fixed Ansible for controller
This commit is contained in:
parent
c2d277663f
commit
64a10b0512
10 changed files with 1096 additions and 216 deletions
17
ansible_deploy/controller_script.service.j2
Normal file
17
ansible_deploy/controller_script.service.j2
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description={{ script_file }}
|
||||
After=multi-user.target
|
||||
PartOf=mm-controller.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/poetry run python3 -u {{ script_file }}
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pi
|
||||
Group=pi
|
||||
RestartSec=10
|
||||
WorkingDirectory={{ INSTALL_BASE }}
|
||||
|
||||
[Install]
|
||||
WantedBy=mm-controller.target
|
||||
DefaultInstance=main
|
Loading…
Add table
Add a link
Reference in a new issue