Skip to content

Commit

Permalink
Ensure crc dnsmasq server entries are not duplicated
Browse files Browse the repository at this point in the history
Replace the blockinline by lineinfile to avoid injecting multiple times
the same server in the dnsmasq config.
  • Loading branch information
pablintino authored and openshift-merge-bot[bot] committed Oct 14, 2024
1 parent 0c55f9e commit b5c837d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/playbooks/multinode-customizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@
block:
- name: Configure dns forwarders
become: true
ansible.builtin.blockinfile:
ansible.builtin.lineinfile:
path: "{{ _dnsmasq_config }}"
block: |-
{% for dns_server in _crc_default_net_dns %}
server={{ dns_server }}
{% endfor %}
regexp: "^server\\s=\\s{{ item }}"
insertafter: "EOF"
line: "server={{ item }}"
validate: "{{ _validate }}"
loop: "{{ _crc_default_net_dns }}"

- name: Configure local DNS for CRC pod
become: true
Expand Down

0 comments on commit b5c837d

Please sign in to comment.