dont touch hostname if not neededtags/2017.4
linux_enforce_hostname: | linux_enforce_hostname: | ||||
cmd.wait: | cmd.wait: | ||||
- name: hostname {{ network.hostname }} | - name: hostname {{ network.hostname }} | ||||
- unless: test "$(hostname)" = "{{ network.hostname }}" | |||||
{# | {# | ||||
linux_hostname_hosts: | linux_hostname_hosts: | ||||
- {{ network.hostname }} | - {{ network.hostname }} | ||||
#} | #} | ||||
{%- endif %} | |||||
{%- endif %} |