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 extends: default
rules: rules:
# 80 chars should be enough, but don't fail if a line is longer braces:
line-length: max-spaces-inside: 1
max: 80 level: error
level: warning brackets:
allow-non-breakable-words: true max-spaces-inside: 1
comments: level: error
min-spaces-from-content: 1 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 - name: Ensure hostname set
hostname: hostname:
name: "{{ inventory_hostname }}" name: "{{ inventory_hostname }}"
use: systemd
become: yes become: yes