Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
[INFRA-4108] Возможность апдейтить docker-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ujhgj committed Jan 19, 2019
1 parent 9cc2468 commit 647812e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ docker_machine_master: 127.0.0.1
docker_machine_executable: docker-machine
docker_machine_create: false
docker_machine_remove: false
docker_machine_update: false
docker_machine_manage_config: false
docker_machine_install_version: 0.8.0
docker_machine_install_url: https://github.com/docker/machine/releases/download/v{{ docker_machine_install_version }}/docker-machine-{{ ansible_system }}-{{ ansible_architecture }}
Expand Down
7 changes: 7 additions & 0 deletions tasks/docker_machine_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Update docker-ce
apt:
update_cache: yes
cache_valid_time: 600
name: docker-ce
state: latest
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
when: docker_machine_create
environment:
MACHINE_STORAGE_PATH: "{{ docker_machine_storage_path }}"
- include: docker_machine_update.yml
when: docker_machine_update

0 comments on commit 647812e

Please sign in to comment.