commit | fe57bdd45b6fdfbba246e33d6eed59f51cd75076 | [log] [tgz] |
---|---|---|
author | Petr Michalec <epcim@apealive.net> | Wed Feb 15 09:45:17 2017 +0100 |
committer | Petr Michalec <epcim@apealive.net> | Wed Feb 15 09:45:17 2017 +0100 |
tree | 5b4912f394635bc06a23be647bcaecd1ddb1da8e | |
parent | 279521e7d58d9f5737f427b4e2caba27a614831e [diff] |
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 %}