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