aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-22 10:55:40 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-22 11:14:27 +0200
commit729e1dfe783630ac7ce05e3dd76aa394f73e8d8a (patch)
treeb96af3d822cb42b61127f2ad610617eeff8c0940
parentsshd: move service restart to handlers (diff)
downloadinfra-ansible-729e1dfe783630ac7ce05e3dd76aa394f73e8d8a.tar.gz
infra-ansible-729e1dfe783630ac7ce05e3dd76aa394f73e8d8a.zip
docker: refactoring
Diffstat (limited to '')
-rw-r--r--roles/docker/tasks/logging.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/docker/tasks/logging.yml b/roles/docker/tasks/logging.yml
index 9dcf103..b40da18 100644
--- a/roles/docker/tasks/logging.yml
+++ b/roles/docker/tasks/logging.yml
@@ -4,21 +4,21 @@
become: true
ansible.builtin.slurp:
src: /etc/docker/daemon.json
- register: current_docker_config
+ register: docker_current_config
- name: Parse daemon.json
ansible.builtin.set_fact:
- current_docker_config: '{{ current_docker_config.content | b64decode | from_json }}'
+ docker_current_config: '{{ docker_current_config.content | b64decode | from_json }}'
rescue:
- name: daemon.json is missing
ansible.builtin.set_fact:
- current_docker_config: {}
+ docker_current_config: {}
- name: Modify Docker config
become: true
ansible.builtin.copy:
dest: /etc/docker/daemon.json
- content: '{{ current_docker_config | combine({"log-driver": docker_logging_driver}) | to_nice_json }}'
+ content: '{{ docker_current_config | combine({"log-driver": docker_logging_driver}) | to_nice_json }}'
owner: root
group: root
mode: '644'