aboutsummaryrefslogtreecommitdiffstats
path: root/roles/relayd/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-04-17 17:16:13 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-04-17 17:16:13 +0200
commit138c194c45de4e36b9852c8eeadd49f4a30efa30 (patch)
tree89b4782a308c32609c829563e71cf3157e3241b6 /roles/relayd/tasks
parent2eb4c6d11e671f4c1d65181cdddc2e680cac6f77 (diff)
downloadinfrastructure-138c194c45de4e36b9852c8eeadd49f4a30efa30.tar.gz
relayd: Verify syntax for configuration file
Diffstat (limited to 'roles/relayd/tasks')
-rw-r--r--roles/relayd/tasks/main.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/relayd/tasks/main.yml b/roles/relayd/tasks/main.yml
index 5de324c..63cc7f5 100644
--- a/roles/relayd/tasks/main.yml
+++ b/roles/relayd/tasks/main.yml
@@ -3,12 +3,15 @@
---
-- name: Generate relayd configuration
+- name: generate relayd configuration
template:
src: templates/relayd.conf.j2
dest: /etc/relayd.conf
-- name: Enable and restart relayd
+- name: verify relayd configuration
+ shell: relayd -n
+
+- name: enable and restart relayd
service:
name: relayd
state: restarted
remember that computers suck.