Skip to content

Commit

Permalink
Merge pull request #377 from klihub/fixes/e2e/fix-ubuntu-cloud-image-…
Browse files Browse the repository at this point in the history
…provisioning

e2e: fix provisioning for Ubuntu cloud image.
  • Loading branch information
fmuyassarov authored Oct 5, 2024
2 parents ed00b79 + 557a05b commit e20ea5a
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 e20ea5a

Please sign in to comment.