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 - 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 - name: Set hostname and fqdn as alias for ipv4
lineinfile: lineinfile:

Loading…
Cancel
Save