To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 493f908a authored by Bengt Giger's avatar Bengt Giger
Browse files

Fixed linting for rsyslog_forwarder

parent a2664f94
Pipeline #90630 passed with stage
in 7 minutes and 19 seconds
...@@ -6,7 +6,7 @@ driver: ...@@ -6,7 +6,7 @@ driver:
lint: | lint: |
set -e set -e
yamllint . yamllint .
ansible-lint tasks ansible-lint tasks -c molecule/default/ansible-lint.yml
platforms: platforms:
- name: EL7 - name: EL7
# systemd enabled container setup # systemd enabled container setup
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
file: file:
name: /etc/rsyslog.d name: /etc/rsyslog.d
state: directory state: directory
mode: "0755"
- name: Ensure rsyslogd is running and enabled - name: Ensure rsyslogd is running and enabled
service: service:
...@@ -29,13 +30,15 @@ ...@@ -29,13 +30,15 @@
template: template:
src: rsyslog_local.conf.j2 src: rsyslog_local.conf.j2
dest: /etc/rsyslog.d/rsyslog_local.conf dest: /etc/rsyslog.d/rsyslog_local.conf
when: rsyslog_local_targets_active == true mode: "0644"
when: rsyslog_local_targets_active
notify: restart rsyslog notify: restart rsyslog
- name: Remote logging - name: Remote logging
template: template:
src: rsyslog_remote.conf.j2 src: rsyslog_remote.conf.j2
dest: "/etc/rsyslog.d/{{ target.name }}.conf" dest: "/etc/rsyslog.d/{{ target.name }}.conf"
mode: "0644"
loop: "{{ rsyslog_remote_targets }}" loop: "{{ rsyslog_remote_targets }}"
loop_control: loop_control:
loop_var: target loop_var: target
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment