forked from FF-RGB/ansible
unfuck systemd startup issues
This commit is contained in:
parent
1e4b24e94b
commit
f830046541
@ -32,5 +32,11 @@
|
|||||||
when: nginx_ssl == True
|
when: nginx_ssl == True
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
|
- name: Ensure network and dns are available before nginx
|
||||||
|
lineinfile:
|
||||||
|
dest: /lib/systemd/system/nginx.service
|
||||||
|
line: "After=network-online.target nss-lookup.target"
|
||||||
|
regexp: "^After="
|
||||||
|
|
||||||
- name: Start nginx
|
- name: Start nginx
|
||||||
service: name=nginx state=started enabled=yes
|
service: name=nginx state=started enabled=yes
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=respondd
|
Description=respondd
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/{{ site_code }}/respondd-announce/respondd.py -b {{ batman_interface }} -i {{ main_bridge }} -i vpn-{{ site_code }} -d /opt/{{ site_code }}/respondd-announce/
|
ExecStart=/opt/{{ site_code }}/respondd-announce/respondd.py -b {{ batman_interface }} -i {{ main_bridge }} -i vpn-{{ site_code }} -d /opt/{{ site_code }}/respondd-announce/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=yanic
|
Description=yanic
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
Loading…
Reference in New Issue
Block a user