Ansible 2.0

This commit is contained in:
ant31
2016-01-12 17:56:29 +01:00
parent af8f394714
commit b769636435
10 changed files with 34 additions and 52 deletions

View File

@@ -59,12 +59,8 @@
- name: target resolv.conf file
set_fact:
resolvconffile: >
{%- if resolvconf.stat.exists == True -%}
/etc/resolvconf/resolv.conf.d/head
{%- else -%}
/etc/resolv.conf
{%- endif -%}
resolvconffile: >-
{%- if resolvconf.stat.exists == True -%}/etc/resolvconf/resolv.conf.d/head{%- else -%}/etc/resolv.conf{%- endif -%}
- name: Add search resolv.conf
lineinfile: