Skip to content

Commit

Permalink
fix: Workaround to fix docker role issue (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
karolpivo authored Mar 10, 2024
1 parent d8b44d6 commit edbc41b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions molecule/resources/playbooks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@


pre_tasks:

- name: Remove docker repos - workaround for ansible-role-docker/issues/434
ansible.builtin.shell: |
rm /etc/apt/sources.list.d/docker.list
rm /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list
when: ansible_os_family == 'Debian'
ignore_errors: true
register: cmd_output
changed_when: cmd_output.rc != 0

- name: Update apt cache
ansible.builtin.apt:
update_cache: true
Expand Down

0 comments on commit edbc41b

Please sign in to comment.