Skip to content

Commit edbc41b

Browse files
authored
fix: Workaround to fix docker role issue (#153)
1 parent d8b44d6 commit edbc41b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

molecule/resources/playbooks/prepare.yml

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111

1212

1313
pre_tasks:
14+
15+
- name: Remove docker repos - workaround for ansible-role-docker/issues/434
16+
ansible.builtin.shell: |
17+
rm /etc/apt/sources.list.d/docker.list
18+
rm /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list
19+
when: ansible_os_family == 'Debian'
20+
ignore_errors: true
21+
register: cmd_output
22+
changed_when: cmd_output.rc != 0
23+
1424
- name: Update apt cache
1525
ansible.builtin.apt:
1626
update_cache: true

0 commit comments

Comments
 (0)