dont touch hostname if not neededtags/2017.4
@@ -19,6 +19,7 @@ linux_hostname_file: | |||
linux_enforce_hostname: | |||
cmd.wait: | |||
- name: hostname {{ network.hostname }} | |||
- unless: test "$(hostname)" = "{{ network.hostname }}" | |||
{# | |||
linux_hostname_hosts: | |||
@@ -29,4 +30,4 @@ linux_hostname_hosts: | |||
- {{ network.hostname }} | |||
#} | |||
{%- endif %} | |||
{%- endif %} |