Browse Source

add systemd parameter to hostname

master
vincent 3 months ago
parent
commit
ee96ad264d
  1. 36
      .yamllint
  2. 3
      tasks/hostname.yml

36
.yamllint

@ -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

3
tasks/hostname.yml

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