From 138c194c45de4e36b9852c8eeadd49f4a30efa30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 17 Apr 2021 17:16:13 +0200 Subject: relayd: Verify syntax for configuration file --- roles/relayd/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'roles/relayd/tasks') 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 -- cgit v1.2.3