add systemd parameter to hostname
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2021-06-14 19:21:09 +02:00
parent 8b00e683d9
commit ee96ad264d
2 changed files with 31 additions and 8 deletions

View File

@ -1,11 +1,33 @@
---
# Based on ansible-lint config
extends: default
rules:
# 80 chars should be enough, but don't fail if a line is longer
line-length:
max: 80
level: warning
allow-non-breakable-words: true
comments:
min-spaces-from-content: 1
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable

View File

@ -2,4 +2,5 @@
- name: Ensure hostname set
hostname:
name: "{{ inventory_hostname }}"
use: systemd
become: yes