diff --git a/tasks/main.yml b/tasks/main.yml index 4bf2f51..0690ea9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,11 +11,12 @@ - name: Ensure to remove old docker packages ansible.builtin.package: - name: - - docker - - docker-common - - docker-engine + name: "{{ item }}" state: absent + loop: + - docker + - docker-common + - docker-engine - name: Install packages ansible.builtin.package: