Skip to content

Commit

Permalink
Made sure if Docker version is locked then it'll not be upgraded with…
Browse files Browse the repository at this point in the history
… apt uprade in `docker` role
  • Loading branch information
AllRWeak authored and bl0way committed Jan 23, 2024
1 parent a94f8b9 commit e355c8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nova/core/roles/docker/tasks/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@
retries: 6
delay: 5

- name: "{{ 'Locking' if docker_engine_version != {} else 'Unlocking' }} Docker engine version..." # This is to avoid updating Docker with apt upgrade
ansible.builtin.dpkg_selections:
name: "{{ item }}"
selection: "{{ 'hold' if docker_engine_version != {} else 'install' }}"
loop:
- docker-ce-cli
- docker-ce

- name: Getting python3-pip version...
ansible.builtin.shell: pip3 -V | cut -d " " -f 2
changed_when: false
Expand Down

0 comments on commit e355c8d

Please sign in to comment.