Browse Source

dont touch hostname if not needed

tags/2017.4
Petr Michalec 8 years ago
parent
commit
fe57bdd45b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      linux/network/hostname.sls

+ 2
- 1
linux/network/hostname.sls View File

@@ -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 %}

Loading…
Cancel
Save