Commit 4ec19b5d authored by Alexander Withers's avatar Alexander Withers

ansible uses fqdn fact

parent 06d810b0
---
csirtg_provider: "{{ ansible_hostname }}"
#csirtg_provider: "{{ ansible_hostname }}"
csirtg_provider: "{{ ansible_fqdn }}"
csirtg_tags: 'scanner,ssh'
docker_container_name: 'ssh-auth-logger'
......
[Unit]
Description=zyre-gateway service
[Service]
Type=simple
User={{ app_user }}
Group={{ app_user }}
PIDFile=/run/zyre-gateway.pid
ExecStart=/usr/local/gateway/gateway {{ ansible_hostname }}
KillMode=process
Restart=on-failure
KillSignal=SIGINT
TimeoutStopSec=5
PrivateTmp=true
WorkingDirectory=/usr/local/gateway
EnvironmentFile=-/etc/zyre_gateway.env
[Install]
WantedBy=multi-user.target
......@@ -6,7 +6,8 @@ Type=simple
User={{ app_user }}
Group={{ app_user }}
PIDFile=/run/zyre-gateway.pid
ExecStart=/usr/local/gateway/gateway {{ ansible_hostname }}
#ExecStart=/usr/local/gateway/gateway {{ ansible_hostname }}
ExecStart=/usr/local/gateway/gateway {{ ansible_fqdn }}
KillMode=process
Restart=on-failure
KillSignal=SIGINT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment