Skip to content
Snippets Groups Projects
Commit 7b96fc30 authored by Lars Beckers's avatar Lars Beckers
Browse files

lint yaml files

parent cb72ca36
No related branches found
No related tags found
No related merge requests found
---
extends: default
rules:
comments-indentation:
level: warning
document-start:
level: error
empty-lines:
max: 1
empty-values:
forbid-in-flow-mappings: true
forbid-in-block-mappings: true
line-length:
level: warning
octal-values:
forbid-implicit-octal: true
level: warning
---
- name: Run systemd-tmpfiles
command: systemd-tmpfiles --create --prefix=/var/log/journal/remote
......
- name: ensure there are no write barriers on the partition for the remote journals
---
# yamllint disable-line rule:line-length
- name: ensure there are no write barriers on the partition for the remote journals
mount:
fstype: ext4
opts: defaults,nobarrier
......@@ -7,7 +10,7 @@
src: "UUID={{ item.uuid }}"
passno: 1
with_items: "{{ ansible_mounts }}"
when: item.mount == "/"
when: item.mount == "/"
tags:
- journal-remote
......@@ -24,7 +27,7 @@
path: /etc/systemd/system/systemd-journal-remote.service.d
owner: root
group: root
mode: 0755
mode: '0755'
state: directory
tags:
- journal-remote
......@@ -35,7 +38,7 @@
dest: /etc/systemd/system/systemd-journal-remote.service.d/http.conf
owner: root
group: root
mode: 0644
mode: '0644'
src: http.conf
notify:
- Reload systemd
......@@ -67,8 +70,8 @@
- name: Enable journal-remote service
systemd:
name: systemd-journal-remote.socket
enabled: yes
daemon_reload: yes
enabled: true
daemon_reload: true
state: started
tags:
- journal-remote
......
---
- name: Reload systemd
systemd: daemon-reload=yes
......
---
- name: Configure only on Debian ≥Stretch
when: ansible_distribution_major_version|int >= 9
block:
......@@ -41,7 +43,7 @@
- name: Enable journal-upload service
systemd:
name: systemd-journal-upload.service
enabled: yes
enabled: true
state: started
tags:
- journal-upload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment