Modified Docker daemon option name to not overlap
This commit is contained in:
parent
01b5a0a3b4
commit
1ebc079dd2
|
@ -39,7 +39,7 @@ A list of UNIX users to add to the docker group.
|
||||||
|
|
||||||
[source,yaml]
|
[source,yaml]
|
||||||
----
|
----
|
||||||
docker_daemon_options:
|
docker_options:
|
||||||
docker_daemon_options:
|
docker_daemon_options:
|
||||||
log-opts:
|
log-opts:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
|
|
|
@ -15,7 +15,7 @@ docker_packages:
|
||||||
- "containerd.io"
|
- "containerd.io"
|
||||||
docker_users:
|
docker_users:
|
||||||
- "syrell"
|
- "syrell"
|
||||||
docker_daemon_options:
|
docker_options:
|
||||||
docker_daemon_options:
|
docker_daemon_options:
|
||||||
log-opts:
|
log-opts:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
path: /etc/docker
|
path: /etc/docker
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: docker_daemon_options.keys() | length > 0
|
when: docker_options.keys() | length > 0
|
||||||
|
|
||||||
- name: Configure Docker daemon options
|
- name: Configure Docker daemon options
|
||||||
copy:
|
copy:
|
||||||
content: "{{ docker_daemon_options | to_nice_json }}"
|
content: "{{ docker_options | to_nice_json }}"
|
||||||
dest: /etc/docker/daemon.json
|
dest: /etc/docker/daemon.json
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: docker_daemon_options.keys() | length > 0
|
when: docker_options.keys() | length > 0
|
||||||
notify: restart docker
|
notify: restart docker
|
||||||
|
|
||||||
- name: Ensure Docker is started and enabled at boot.
|
- name: Ensure Docker is started and enabled at boot.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user