Ansible but more better
This commit is contained in:
parent
29b2beca5a
commit
b7ce9d850d
13 changed files with 172 additions and 0 deletions
16
ansible_deploy/controller/controller_script.service.j2
Normal file
16
ansible_deploy/controller/controller_script.service.j2
Normal file
|
@ -0,0 +1,16 @@
|
|||
[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
|
Loading…
Add table
Add a link
Reference in a new issue