Browse Source

Condense resolvconf sources before starting loop

pull/1146/head
Matthew Mosesohn 7 years ago
parent
commit
a52064184e
1 changed files with 2 additions and 4 deletions
  1. 6
      roles/kubernetes/preinstall/tasks/resolvconf.yml

6
roles/kubernetes/preinstall/tasks/resolvconf.yml

@ -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…
Cancel
Save