Fix code blocks in Docker README

This commit is contained in:
syrell 2023-02-12 23:36:13 +01:00
parent 85e5294363
commit 1c873cea70
Signed by: syrell
GPG Key ID: BC9570E849334AF9

View File

@ -13,43 +13,47 @@ Role Variables
Variables can be found in the `default vars <defaults/main.yml>`_ Variables can be found in the `default vars <defaults/main.yml>`_
.. codeblock:: yaml .. code-block:: yaml
docker_edition: 'ce'
docker_dependencies: docker_edition: 'ce'
- "apt-transport-https" docker_dependencies:
- "ca-certificates" - "apt-transport-https"
- "curl" - "ca-certificates"
- "gpg" - "curl"
- "gnupg" - "gpg"
- "lsb-release" - "gnupg"
docker_packages: - "lsb-release"
- "docker-{{ docker_edition }}" docker_packages:
- "docker-{{ docker_edition }}-cli" - "docker-{{ docker_edition }}"
- "docker-{{ docker_edition }}-rootless-extras" - "docker-{{ docker_edition }}-cli"
- "containerd.io" - "docker-{{ docker_edition }}-rootless-extras"
- "containerd.io"
Defines Docker flavor to install, dependencies and the packages to install. We don't install the docker-compose binary since compose is include in the Docker command line. Defines Docker flavor to install, dependencies and the packages to install. We don't install the docker-compose binary since compose is include in the Docker command line.
.. codeblock:: yaml .. code-block:: yaml
docker_users:
- "syrell" docker_users:
- "syrell"
A list of UNIX users to add to the docker group. A list of UNIX users to add to the docker group.
.. codeblock:: yaml .. code-block:: yaml
docker_daemon_options:
docker_daemon_options: docker_daemon_options:
log-opts: docker_daemon_options:
max-size: "100m" log-opts:
max-size: "100m"
A dictionary listing options to add to the Docker daemon. A dictionary listing options to add to the Docker daemon.
.. codeblock:: yaml .. code-block:: yaml
docker_apt_release_channel: stable
docker_repo_url: https://download.docker.com/linux docker_apt_release_channel: stable
docker_apt_arch: amd64 docker_repo_url: https://download.docker.com/linux
docker_apt_gpg_key: "{{ docker_repo_url }}/{{ ansible_distribution | lower }}/gpg" docker_apt_arch: amd64
docker_apt_repository: "deb [arch={{ docker_apt_arch }}] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}" docker_apt_gpg_key: "{{ docker_repo_url }}/{{ ansible_distribution | lower }}/gpg"
docker_apt_repository: "deb [arch={{ docker_apt_arch }}] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"
Variables relative to the Docker Debian repository. Variables relative to the Docker Debian repository.
@ -61,11 +65,12 @@ None.
Example Playbook Example Playbook
---------------- ----------------
.. codeblock:: yaml .. code-block:: yaml
- name: Install docker
hosts: all - name: Install docker
roles: hosts: all
- docker roles:
- docker
License License
------- -------