Skip to content
Snippets Groups Projects
Commit 664dcf1a authored by nimrod's avatar nimrod
Browse files

- Validate config as a task (Ansible's validate requires specifying the config file).

parent 49b1f54f
No related branches found
No related tags found
No related merge requests found
...@@ -22,10 +22,14 @@ ...@@ -22,10 +22,14 @@
owner: root owner: root
group: root group: root
mode: 0o0644 mode: 0o0644
validate: rsyslogd -N1
notify: notify:
- Restart rsyslog - Restart rsyslog
- name: Validate config
when: ansible_os_family == 'Debian'
command: rsyslogd -N1
changed_when: False
- name: Configure syslogd forwarding - name: Configure syslogd forwarding
when: ansible_os_family == 'OpenBSD' when: ansible_os_family == 'OpenBSD'
lineinfile: lineinfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment