diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-04-17 17:16:13 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-04-17 17:16:13 +0200 |
commit | 138c194c45de4e36b9852c8eeadd49f4a30efa30 (patch) | |
tree | 89b4782a308c32609c829563e71cf3157e3241b6 /roles | |
parent | 2eb4c6d11e671f4c1d65181cdddc2e680cac6f77 (diff) | |
download | infrastructure-138c194c45de4e36b9852c8eeadd49f4a30efa30.tar.gz |
relayd: Verify syntax for configuration file
Diffstat (limited to 'roles')
-rw-r--r-- | roles/relayd/tasks/main.yml | 7 |
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 |