update service template
This commit is contained in:
parent
0c21da9a40
commit
564cb99891
@ -5,13 +5,13 @@
|
|||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
listen: "systemctl-daemon-reload"
|
listen: "systemctl-daemon-reload"
|
||||||
|
|
||||||
- name: "Enable consul service"
|
- name: "Enable adguard service"
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: adguard
|
name: adguard
|
||||||
enabled: true
|
enabled: true
|
||||||
listen: "systemctl-enable-adguard"
|
listen: "systemctl-enable-adguard"
|
||||||
|
|
||||||
- name: "Start consul service"
|
- name: "Start adguard service"
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: adguard
|
name: adguard
|
||||||
state: restarted
|
state: restarted
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Some personal Docker containers
|
Description=Free and open source, powerful network-wide ads & trackers blocking DNS server.
|
||||||
After=docker.service
|
After=docker.service
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/bin/bash -c "docker compose -f {{ deploy_adguard_directory }}/docker-compose.yml up --detach"
|
ExecStart=/bin/bash -c "docker-compose -f {{ deploy_adguard_directory }}/docker-compose.yml up --detach"
|
||||||
ExecStop=/bin/bash -c "docker compose -f {{ deploy_adguard_directory }}/docker-compose.yml stop"
|
ExecStop=/bin/bash -c "docker-compose -f {{ deploy_adguard_directory }}/docker-compose.yml down"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user