Skip to content

Commit

Permalink
test/e2e: redirecting output needs builtin.shell.
Browse files Browse the repository at this point in the history
Use ansible.builtin.shell for tasks that try to write to files
by redirecting output.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and askervin committed Dec 18, 2023
1 parent ca7c4f8 commit c9ae08a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/playbook/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
when: cri_runtime == "crio"

- name: Setup DNS
ansible.builtin.command: "{{ item }}"
ansible.builtin.shell: "{{ item }}"
with_items:
- rm -f /etc/resolv.conf
- echo "nameserver {{ dns_nameserver }}" > /etc/resolv.conf
Expand Down Expand Up @@ -249,7 +249,7 @@

- name: Configure containerd
when: is_containerd
ansible.builtin.command: "{{ item }}"
ansible.builtin.shell: "{{ item }}"
with_items:
- mkdir -p /etc/containerd
- containerd config default > /etc/containerd/config.toml
Expand Down

0 comments on commit c9ae08a

Please sign in to comment.