-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
35 lines (33 loc) · 1.21 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
---
docker_deb_repo:
url: "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }} stable"
keyserver: "https://download.docker.com/linux/{{ ansible_os_family | lower }}/gpg"
key: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
docker_rpm_repo:
url: "https://download.docker.com/linux/centos/docker-ce.repo"
gpgkey: https://yum.dockerproject.org/gpg
docker_repo_state: present
docker_repo_manage: "{{ docker_packages_state != 'absent' }}"
docker_packages:
- docker-ce
- docker-ce-cli
docker_packages_state: present
docker_configuration_template: mountflags.conf.j2
docker_configuration_file: /etc/systemd/system/docker.service.d/mountflags.conf
docker_configuration_path: "{{ docker_configuration_file | dirname }}"
docker_service_name: docker
docker_service_state: started
docker_service_enabled: true
docker_service_manage: "{{ docker_packages_state != 'absent' }}"
docker_group: docker
docker_user_manage: true
docker_group_manage: true
docker_user: "{{ lookup('env', 'USER') }}"
docker_conf_file: /etc/docker/daemon.json
docker_conf_manage: false
docker_conf_mirror: []
docker_conf:
log-driver: "json-file"
log-opts:
max-size: "10m"
max-file: '3'