- repl: {{ after }} | - repl: {{ after }} | ||||
- watch: | - watch: | ||||
- host: linux_host_{{ name }} | - host: linux_host_{{ name }} | ||||
- onlyif: | |||||
- grep -q "{{ before }}" /etc/hosts | |||||
{%- endif %} | {%- endif %} | ||||
{%- endfor %} | {%- endfor %} | ||||
{%- endif %} | |||||
{%- endif %} |
- type: {{ interface.type }} | - type: {{ interface.type }} | ||||
{%- if interface.address is defined %} | {%- if interface.address is defined %} | ||||
{%- if grains.os_family == 'Debian' %} | {%- if grains.os_family == 'Debian' %} | ||||
- unless: grep -q "iface {{ interface_name }} " /etc/network/interfaces | |||||
- proto: {{ interface.get('proto', 'static') }} | - proto: {{ interface.get('proto', 'static') }} | ||||
{% endif %} | {% endif %} | ||||
{%- if grains.os_family == 'RedHat' %} | {%- if grains.os_family == 'RedHat' %} |