WIP: update docker swarm configuration

This commit is contained in:
Alexander Navarro 2024-12-12 16:57:41 -03:00
parent 73e4d7fd19
commit 53ba86c6b7
6 changed files with 69 additions and 69 deletions

View file

@ -35,3 +35,15 @@
networks: true
builder_cache: true
- name: Remove network interface
become: true
ansible.builtin.command:
cmd: ip link delete docker_gwbridge
when: ansible_facts['interfaces'] | select('match', 'docker_gwbridge') | list | length > 0
- name: Restart docker
become: true
ansible.builtin.service:
name: docker
state: restarted