Condense resolvconf sources before starting loop
parent
b4a1ba828a
commit
a52064184e
|
@ -28,9 +28,8 @@
|
|||
backup: yes
|
||||
follow: yes
|
||||
with_nested:
|
||||
- "{{ [resolvconffile] + [base|default('')] + [head|default('')] }}"
|
||||
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
||||
- [ 'search ', 'nameserver ', 'domain ', 'options ' ]
|
||||
when: item[0] != ""
|
||||
notify: Preinstall | restart network
|
||||
|
||||
- name: Remove search/domain/nameserver options after block
|
||||
|
@ -41,9 +40,8 @@
|
|||
backup: yes
|
||||
follow: yes
|
||||
with_nested:
|
||||
- "{{ [resolvconffile] + [base|default('')] + [head|default('')] }}"
|
||||
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
||||
- [ 'search ', 'nameserver ', 'domain ', 'options ' ]
|
||||
when: item[0] != ""
|
||||
notify: Preinstall | restart network
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue