Skip to content

Commit

Permalink
Allow selection of apt channel (#211)
Browse files Browse the repository at this point in the history
* Allow selection of apt channel

This allows easier installation of nightly or edge releases.

* Clarify why you might want a different apt channel
  • Loading branch information
sgrimm-sg authored and angstwad committed May 11, 2018
1 parent 1b629b6 commit e0f4ccd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ uninstall_previous_docker_versions: false
# assume that the desired version is community edition
docker_edition: ce

# Which channel to pull from the apt repository; "edge" gets releases for new OS versions before
# "stable" does, so if your OS isn't supported in "stable" you might still be able to install by
# changing this to "edge". Other channels include "test" and "nightly".
docker_apt_channel: stable

# docker-ce is the default package name
docker_pkg_name: "{{ 'docker-ee' if docker_edition == 'ee' else 'docker-ce' }}"
docker_apt_cache_valid_time: 600
Expand All @@ -27,7 +32,7 @@ apt_key_sig: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
keyring: "/etc/apt/trusted.gpg.d/docker.gpg"
# Name of the apt repository for Docker CE or EE
apt_repository_arch: "amd64"
apt_repository: "deb [arch={{ apt_repository_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} stable"
apt_repository: "deb [arch={{ apt_repository_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} {{ docker_apt_channel }}"

# daemon_json allows you to configure the daemon with the daemon.json file.
# https://docs.docker.com/engine/reference/commandline/dockerd/#on-linux
Expand Down

0 comments on commit e0f4ccd

Please sign in to comment.