-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
115 lines (96 loc) · 4.95 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
# @var docker_apt_arch: amd64
# The processor architecture to use (Debian/Ubuntu only)
docker_apt_arch: amd64
# @var docker_apt_gpg_key: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
# The URL of the apt repository's GPG key (Debian/Ubuntu only)
docker_apt_gpg_key: 'https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg'
# @var docker_apt_ignore_key_error: true
# Whether or not to ignore errors when adding the apt repository's GPG key (Debian/Ubuntu only)
docker_apt_ignore_key_error: true
# @var docker_apt_release_channel: stable
# The release channel to use on Debian/Ubuntu. You can set the value of this variable to either `stable` or `edge`.
docker_apt_release_channel: stable
# @var docker_apt_repository: See defaults/main.yml
# The apt repository to use (Debian/Ubuntu only)
docker_apt_repository: "deb [arch={{ docker_apt_arch }}] {{ https_repository_prefix }}\
download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} \
{{ docker_apt_release_channel }}"
# @var docker_compose_path: /usr/local/bin/docker-compose
# The target destination of the `docker-compose` binary that will be installed
docker_compose_path: /usr/local/bin/docker-compose
# @var docker_edition: ce
# Edition can be either `ce` (Community Edition) or `ee` (Enterprise Edition).
docker_edition: ce
# @var docker_install_compose: true
# Whether or not to install `docker-compose`
docker_install_compose: true
# @var docker_no_plugins: false
# Should the below Docker plugins be installed?
# Fast container image distribution plugin with lazy pulling - https://github.com/containerd/stargz-snapshotter
# A Docker volume plugin, managing persistent container volumes - https://github.com/rancher/convoy
# Docker Client Plugins Manager - build new plugins, publish them on Docker Hub - https://github.com/lukaszlach/clip
docker_no_plugins: false
# @example #
# docker_edition:
# - subitem: string
# - subitem2: string
# @end
# @var docker_package: docker-{{ docker_edition }}
# The name of the Docker package to install
docker_package: 'docker-{{ docker_edition }}'
# @var docker_restart_handler_state: restarted
# The state that the Docker service should assume when a restart event is triggered
docker_restart_handler_state: restarted
# @example #
# docker_users:
# - "{{ ansible_user }}"
# - secondaryuser
# - serviceaccount
# @end
# @var docker_snap_install: false
# Whether or not to use snap to install Docker - you can use this if there are issues with your configuration.
# Certificates (used by Portainer, for instance) will not be generated for a snap install. More information
# about the certificates is detailed below.
docker_snap_install: false
# @var docker_tls: true
# When set to true, the role will configure Docker for TLS network connections and generate the required
# certificates. The certificates will be stored in `/etc/ssl/docker` on the client and in the `~/.docker` folder on
# the host. To reiterate, after each client machine installs Docker and generates certificates, the certificates
# are copied to the Ansible host machine. You can then use these certificates to connect to Docker daemons
# remotely (with Portainer, for instance).
docker_tls: true
# @var docker_tls_country: US
# The country to use when configuring TLS
docker_tls_country: US
# @var docker_tls_division: Megabyte Labs
# The division to use when configuring TLS
docker_tls_division: Megabyte Labs
# @var docker_tls_fqdn: {{ fqdn | default('machine.example.com') }}
# The FQDN to use when configuring TLS - this should be set to the FQDN of the Docker host that's being configured
docker_tls_fqdn: "{{ fqdn | default('machine.example.com') }}"
# @var docker_tls_locality: The Hood
# The locality to use when configuring TLS
docker_tls_locality: The Hood
# @var docker_tls_organization: Megabyte LLC
# The organization to use when configuring TLS
docker_tls_organization: Megabyte LLC
# @var docker_tls_state: New Jersey
# The state to use when configuring TLS
docker_tls_state: New Jersey
# @var docker_users: []
# A list of users to add to the docker group
docker_users: []
# @var docker_yum_gpg_key: https://download.docker.com/linux/centos/gpg
# The URL of the GPG key to validate against when downloading from the specified yum repository
docker_yum_gpg_key: https://download.docker.com/linux/centos/gpg
docker_yum_repo_enable_edge: '0'
docker_yum_repo_enable_test: '0'
# @var docker_yum_repo_url: See defaults/main.yml
# The yum repository URL to retrieve the installation packages (CentOS/Fedora/RedHat only)
docker_yum_repo_url: "https://download.docker.com/linux/{{ (ansible_distribution == 'Fedora') \
| ternary('fedora','centos') }}/docker-{{ docker_edition }}.repo"
# @var https_repository_prefix: https://
# Allows you to customize what the apt repository URL starts with. This is useful if you are using something like
# apt-cacher-ng as a proxy cache which requires the URL to start with http://HTTPS/. (Debian/Ubuntu only)
https_repository_prefix: https://