Skip to content

Commit

Permalink
Fix error in ubuntu 24
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 3, 2024
1 parent 8e7925a commit 1b097bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,16 @@
- docker-compose
executable: pip3
extra_args: "{{ extra_args }}"
when: ansible_python.version.major > 2
when: ansible_python.version.major > 2 and ansible_python_version is version('3.11', '<')

- name: Install dependencies for docker management pip3 in py3.11+
pip:
name:
- docker
- docker-compose
executable: pip3
extra_args: "{{ extra_args }}"
when: ansible_python_version is version('3.11', '>=')

- name: Remove docker-compose v1 bin
file:
Expand Down

0 comments on commit 1b097bf

Please sign in to comment.