Modified Docker daemon option name to not overlap

This commit is contained in:
syrell 2024-02-22 23:07:10 +01:00
parent 01b5a0a3b4
commit 1ebc079dd2
Signed by: syrell
GPG Key ID: BC9570E849334AF9
3 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ A list of UNIX users to add to the docker group.
[source,yaml]
----
docker_daemon_options:
docker_options:
docker_daemon_options:
log-opts:
max-size: "100m"

View File

@ -15,7 +15,7 @@ docker_packages:
- "containerd.io"
docker_users:
- "syrell"
docker_daemon_options:
docker_options:
docker_daemon_options:
log-opts:
max-size: "100m"

View File

@ -26,14 +26,14 @@
path: /etc/docker
state: directory
mode: 0755
when: docker_daemon_options.keys() | length > 0
when: docker_options.keys() | length > 0
- name: Configure Docker daemon options
copy:
content: "{{ docker_daemon_options | to_nice_json }}"
content: "{{ docker_options | to_nice_json }}"
dest: /etc/docker/daemon.json
mode: 0644
when: docker_daemon_options.keys() | length > 0
when: docker_options.keys() | length > 0
notify: restart docker
- name: Ensure Docker is started and enabled at boot.