59 lines
2.3 KiB
YAML
59 lines
2.3 KiB
YAML
---
|
|
# Default variables for the docker role
|
|
|
|
# Infrastructure
|
|
# Ansible instructions to deploy the infrastructure
|
|
# Copyright (C) 2020 Saibotk
|
|
# Copyright (C) 2020 nickjj (https://github.com/nickjj/ansible-docker)
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, version 3 of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Architecture mapping for apt repositories
|
|
docker_apt_architecture_map:
|
|
"x86_64": "amd64"
|
|
"aarch64": "arm64"
|
|
"aarch": "arm64"
|
|
"armhf": "armhf"
|
|
"armv7l": "armhf"
|
|
|
|
# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
|
|
docker_edition: "ce"
|
|
|
|
# The docker package settings
|
|
docker_package: "docker-{{ docker_edition }}"
|
|
docker_package_state: present
|
|
|
|
# Docker systemd service settings.
|
|
docker_service_state: started
|
|
docker_service_enabled: true
|
|
|
|
# Should the official docker repository be installed?
|
|
docker_install_repository: true
|
|
|
|
# The repository settings
|
|
# The repository will be added as a repository to allow downloading/installing the package
|
|
docker_yum_repository_url: https://download.docker.com/linux/{{ ansible_distribution | lower }}/docker-{{ docker_edition }}.repo
|
|
docker_yum_repository_destination: /etc/yum.repos.d/docker-{{ docker_edition }}.repo
|
|
|
|
# Where to fetch the docker repository GPG key from
|
|
docker_yum_repository_gpg_key: https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg
|
|
|
|
# The apt repository settings
|
|
docker_apt_key_id: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
|
|
docker_apt_key_url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
|
docker_apt_repository: >
|
|
deb [arch={{ docker_apt_architecture_map[ansible_architecture] }}]
|
|
https://download.docker.com/linux/{{ ansible_distribution | lower }}
|
|
{{ ansible_distribution_release }} stable
|
|
|
|
docker_requests_python_package: "python-requests"
|