diff --git a/test/integration/targets/apt/tasks/apt-multiarch.yml b/test/integration/targets/apt/tasks/apt-multiarch.yml index e0ade2bbc50..6241664de25 100644 --- a/test/integration/targets/apt/tasks/apt-multiarch.yml +++ b/test/integration/targets/apt/tasks/apt-multiarch.yml @@ -4,6 +4,8 @@ - name: install hello:{{ apt_foreign_arch }} with apt apt: pkg=hello:{{ apt_foreign_arch }} state=present update_cache=yes + register: apt_result + until: apt_result is success - name: uninstall hello:{{ apt_foreign_arch }} with apt apt: pkg=hello:{{ apt_foreign_arch }} state=absent purge=yes diff --git a/test/integration/targets/apt/tasks/apt.yml b/test/integration/targets/apt/tasks/apt.yml index f9fcdfe3d0b..871cb0d7ba9 100644 --- a/test/integration/targets/apt/tasks/apt.yml +++ b/test/integration/targets/apt/tasks/apt.yml @@ -88,6 +88,7 @@ - name: uninstall hello with apt apt: pkg=hello state=absent purge=yes register: apt_result + until: apt_result is success - name: check hello with dpkg shell: dpkg-query -l hello