feat: add option to add custom unit override options (#5)
Reviewed-on: #5
This commit is contained in:
parent
35f99391a5
commit
3d57460732
246
_docs/index.md
Normal file
246
_docs/index.md
Normal file
@ -0,0 +1,246 @@
|
||||
---
|
||||
title: docker_engine
|
||||
type: docs
|
||||
---
|
||||
|
||||
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.docker_engine)
|
||||
[![Build Status](https://img.shields.io/drone/build/ansible/xoxys.docker_engine?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.docker_engine)
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.docker_engine/src/branch/main/LICENSE)
|
||||
|
||||
Setup docker engine.
|
||||
|
||||
<!--more-->
|
||||
|
||||
- [Requirements](#requirements)
|
||||
- [Default Variables](#default-variables)
|
||||
- [dockerengine_ansible_deps](#dockerengine_ansible_deps)
|
||||
- [dockerengine_daemon_config](#dockerengine_daemon_config)
|
||||
- [dockerengine_daemon_config_extra](#dockerengine_daemon_config_extra)
|
||||
- [dockerengine_docker_group_enabled](#dockerengine_docker_group_enabled)
|
||||
- [dockerengine_http_proxy](#dockerengine_http_proxy)
|
||||
- [dockerengine_https_proxy](#dockerengine_https_proxy)
|
||||
- [dockerengine_networks](#dockerengine_networks)
|
||||
- [dockerengine_networks_extra](#dockerengine_networks_extra)
|
||||
- [dockerengine_no_proxy](#dockerengine_no_proxy)
|
||||
- [dockerengine_nsremap_range_length](#dockerengine_nsremap_range_length)
|
||||
- [dockerengine_nsremap_range_start](#dockerengine_nsremap_range_start)
|
||||
- [dockerengine_nsremap_user](#dockerengine_nsremap_user)
|
||||
- [dockerengine_packages](#dockerengine_packages)
|
||||
- [dockerengine_packages_extra](#dockerengine_packages_extra)
|
||||
- [dockerengine_registries](#dockerengine_registries)
|
||||
- [dockerengine_service](#dockerengine_service)
|
||||
- [dockerengine_service_override_unit](#dockerengine_service_override_unit)
|
||||
- [dockerengine_usernamespace_enabled](#dockerengine_usernamespace_enabled)
|
||||
- [Dependencies](#dependencies)
|
||||
|
||||
---
|
||||
|
||||
## Requirements
|
||||
|
||||
- Minimum Ansible version: `2.1`
|
||||
|
||||
|
||||
## Default Variables
|
||||
|
||||
### dockerengine_ansible_deps
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_ansible_deps:
|
||||
- cryptography
|
||||
- docker-compose
|
||||
- docker
|
||||
```
|
||||
|
||||
### dockerengine_daemon_config
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_daemon_config:
|
||||
- selinux-enabled: false
|
||||
- log-driver: journald
|
||||
- log-level: info
|
||||
- live-restore: true
|
||||
```
|
||||
|
||||
### dockerengine_daemon_config_extra
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_daemon_config_extra: []
|
||||
```
|
||||
|
||||
### dockerengine_docker_group_enabled
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_docker_group_enabled: false
|
||||
```
|
||||
|
||||
### dockerengine_http_proxy
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_http_proxy: _unset_
|
||||
```
|
||||
|
||||
### dockerengine_https_proxy
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_https_proxy: _unset
|
||||
```
|
||||
|
||||
### dockerengine_networks
|
||||
|
||||
List of extra docker networks to create. For configuration detials see `docker_networks`.
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_networks: []
|
||||
```
|
||||
|
||||
#### Example usage
|
||||
|
||||
```YAML
|
||||
dockerengine_networks:
|
||||
- name: my_network
|
||||
driver: bridge
|
||||
enable_ipv6: True
|
||||
ipam_config:
|
||||
- subnet: fdd1:ac8c:0557:7ce1::/64
|
||||
force: False
|
||||
state: present
|
||||
```
|
||||
|
||||
### dockerengine_networks_extra
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_networks_extra: []
|
||||
```
|
||||
|
||||
### dockerengine_no_proxy
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_no_proxy: _unset_
|
||||
```
|
||||
|
||||
### dockerengine_nsremap_range_length
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_nsremap_range_length: 65536
|
||||
```
|
||||
|
||||
### dockerengine_nsremap_range_start
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_nsremap_range_start: 231072
|
||||
```
|
||||
|
||||
### dockerengine_nsremap_user
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_nsremap_user: dockremap
|
||||
```
|
||||
|
||||
### dockerengine_packages
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_packages:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
```
|
||||
|
||||
### dockerengine_packages_extra
|
||||
|
||||
The role requires epel repository and pip to work. You can use
|
||||
`dockerengine_packages_extra` to install these dependencys.
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_packages_extra: []
|
||||
```
|
||||
|
||||
### dockerengine_registries
|
||||
|
||||
List of docker registries to auto login
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_registries: []
|
||||
```
|
||||
|
||||
#### Example usage
|
||||
|
||||
```YAML
|
||||
dockerengine_registries:
|
||||
- registry: myregistry.example.com (optional)
|
||||
username: docker
|
||||
password: secure
|
||||
reauthorize: False
|
||||
state: present
|
||||
```
|
||||
|
||||
### dockerengine_service
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_service: docker
|
||||
```
|
||||
|
||||
### dockerengine_service_override_unit
|
||||
|
||||
Multiline string of options to add to the `systemd` service override unit section.
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_service_override_unit: _unset_
|
||||
```
|
||||
|
||||
#### Example usage
|
||||
|
||||
```YAML
|
||||
dockerengine_service_override_unit: |
|
||||
After=time-sync.target
|
||||
Requires=time-sync.target
|
||||
```
|
||||
|
||||
### dockerengine_usernamespace_enabled
|
||||
|
||||
#### Default value
|
||||
|
||||
```YAML
|
||||
dockerengine_usernamespace_enabled: false
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
Loading…
Reference in New Issue
Block a user