From 14855dcd18d595b9a6988cdbbbd06e05253edcc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 21 Dec 2021 17:18:47 +0000 Subject: roles/relayd: Use handler and pass ansible-lint --- roles/relayd/handlers/main.yml | 2 ++ roles/relayd/tasks/main.yml | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 roles/relayd/handlers/main.yml (limited to 'roles') diff --git a/roles/relayd/handlers/main.yml b/roles/relayd/handlers/main.yml new file mode 100644 index 0000000..82be0a8 --- /dev/null +++ b/roles/relayd/handlers/main.yml @@ -0,0 +1,2 @@ +- name: lint relayd configuration + command: "relayd -nf {{ relayd_configuration_file }}" diff --git a/roles/relayd/tasks/main.yml b/roles/relayd/tasks/main.yml index 14df192..3af5756 100644 --- a/roles/relayd/tasks/main.yml +++ b/roles/relayd/tasks/main.yml @@ -2,9 +2,10 @@ template: src: relayd.conf.j2 dest: "{{ relayd_configuration_file }}" - -- name: verify relayd configuration - command: "relayd -nf {{ relayd_configuration_file }}" + owner: 0 + group: 0 + mode: 0640 + notify: lint relayd configuration - name: enable and restart relayd service: -- cgit v1.2.3