install_docker/README.md

56 lines
1.7 KiB
Markdown
Raw Normal View History

2023-04-04 19:15:48 +00:00
Install Docker
=========
> This repository is only a mirror. Development and testing is done on a private gitlab server.
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
This role install and configure docker on **debian-based** distributions.
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
Requirements
------------
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
None.
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
Role Variables
--------------
Available variables are listed below, along with default values. A sample file for the default values is available in `default/hashicorp_vault.yml.sample` in case you need it for any `group_vars` or `host_vars` configuration.
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
```yaml
hashi_vault_install: true # by default, set to true
2023-04-04 18:58:31 +00:00
```
2023-04-04 19:15:48 +00:00
This variable defines if the vault package is to be installed or not before configuring. If you install vault using another task, you can set this to `false`.
2023-04-04 18:58:31 +00:00
2023-04-06 21:55:20 +00:00
```yaml
install_docker_compose: false # by default, set to false
```
This variables defines whether or not to install docker-compose on the host.
```yaml
install_docker_compose_version: latest # by default, set to latest
```
This variable defines the version of docker-compose to install. It support either `latest`, or the version number (`vX.Y.Z`). Officially, only versions `>=2.0.1` are supported, as the naming for most packages changed at this release.
2023-04-04 19:15:48 +00:00
Dependencies
------------
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
This role requires both `ednxzu.manage_repositories` and `ednxzu.manage_apt_packages` to install docker.
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
Example Playbook
----------------
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
```yaml
# calling the role inside a playbook with either the default or group_vars/host_vars
- hosts: servers
roles:
- ednxzu.install_docker
```
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
License
-------
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
MIT / BSD
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
Author Information
------------------
2023-04-04 18:58:31 +00:00
2023-04-04 19:15:48 +00:00
This role was created by Bertrand Lanson in 2023.