Browse Source

Fix for hosts file idempotence

tags/2016.12
Olivier Bourdon 8 years ago
parent
commit
577fbf5131
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      linux/network/host.sls

+ 3
- 1
linux/network/host.sls View File

@@ -28,6 +28,8 @@ linux_host_{{ name }}_order_fix:
- repl: {{ after }}
- watch:
- host: linux_host_{{ name }}
- onlyif:
- grep -q "{{ before }}" /etc/hosts

{%- endif %}

@@ -35,4 +37,4 @@ linux_host_{{ name }}_order_fix:

{%- endfor %}

{%- endif %}
{%- endif %}

Loading…
Cancel
Save