Merge pull request #57 from salt-formulas/pr_hostname
dont touch hostname if not needed
diff --git a/linux/network/hostname.sls b/linux/network/hostname.sls
index 7c1594a..99de653 100644
--- a/linux/network/hostname.sls
+++ b/linux/network/hostname.sls
@@ -19,6 +19,7 @@
linux_enforce_hostname:
cmd.wait:
- name: hostname {{ network.hostname }}
+ - unless: test "$(hostname)" = "{{ network.hostname }}"
{#
linux_hostname_hosts:
@@ -29,4 +30,4 @@
- {{ network.hostname }}
#}
-{%- endif %}
\ No newline at end of file
+{%- endif %}