feat: add the possibility to add registry mirrors
This commit is contained in:
parent
6ab3505dc8
commit
db50c3d989
3 changed files with 21 additions and 0 deletions
|
|
@ -63,6 +63,16 @@
|
|||
update_cache: true
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Configure Docker daemon with registry mirror
|
||||
ansible.builtin.template:
|
||||
src: daemon.json.j2
|
||||
dest: /etc/docker/daemon.json
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: restart docker
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Start and enable Docker service
|
||||
ansible.builtin.systemd:
|
||||
name: docker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue