Skip to content
Snippets Groups Projects

basic-system/network: Use ansible_hostname instead of inventory_hostname

Merged Thomas Schneider requested to merge th into master
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -21,7 +21,7 @@
@@ -21,7 +21,7 @@
- name: ensure the hostname is not a fqdn
- name: ensure the hostname is not a fqdn
hostname:
hostname:
name: "{{ inventory_hostname }}"
name: "{{ ansible_hostname }}"
when: not dns_hostname_fqdn
when: not dns_hostname_fqdn
notify:
notify:
- gather network facts once again
- gather network facts once again
Loading