hostname: Changed to use ansible-integrated module

dehydrated
Felix Stupp 4 years ago
parent a707a61906
commit c91f5f6559
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,11 +1,8 @@
---
- name: Set local hostname
copy:
content: "{{ hostname }}\n"
dest: /etc/hostname
notify:
- restart systemd-hostnamed
hostname:
name: "{{ hostname }}"
- name: Set hostname and fqdn as alias for ipv4
lineinfile:

Loading…
Cancel
Save