renaming folders after convert to collection
This commit is contained in:
32
roles/docker/tasks/main.yml
Normal file
32
roles/docker/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user