Skip to content

Commit

Permalink
e2e: fix provisioning for Ubuntu cloud image.
Browse files Browse the repository at this point in the history
Ubuntu cloud image does not need a DNS fixup.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Oct 4, 2024
1 parent 34e0018 commit 557a05b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/playbook/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@
when: dns_nameserver != ""

- name: Setup DNS for Ubuntu
ansible.builtin.shell: "{{ item }}"
with_items:
- sed -i 's/addresses\(.\) \[.*\]$/addresses\1 \[{{ dns_nameserver }}\]/' /etc/netplan/01-netcfg.yaml
ansible.builtin.shell: |
[ -f /etc/netplan/01-netcfg.yaml ] && sed -i 's/addresses\(.\) \[.*\]$/addresses\1 \[{{ dns_nameserver }}\]/' /etc/netplan/01-netcfg.yaml || :
when: ansible_facts['distribution'] == "Ubuntu"

- name: Disable swap
Expand Down

0 comments on commit 557a05b

Please sign in to comment.