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