added journald, renamed all roles to follow ansible conventions

This commit is contained in:
2025-09-23 20:16:59 +01:00
parent a6ec546f4e
commit 78e0e4b717
16 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
- name: Setup config File
become: true
ansible.builtin.copy:
dest: "/etc/docker/daemon.json"
content: |
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
mode: '0644'
when: docker_log_driver == 'json-file'
notify:
- Restart Docker
- name: Setup Config File
become: true
ansible.builtin.copy:
dest: "/etc/docker/daemon.json"
content: |
{
"log-driver": "{{ docker_log_driver | default('json-file') }}"
}
mode: '0644'
when: docker_log_driver != 'json-file'
notify:
- Restart Docker