feat: add the possibility to add registry mirrors

This commit is contained in:
Bert-Jan Fikse 2025-12-19 15:10:07 +01:00
parent 6ab3505dc8
commit db50c3d989
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
3 changed files with 21 additions and 0 deletions

View file

@ -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