restart docker service on iptables reloads, and set docker to not restart containers on service restarts
This commit is contained in:
parent
857375657f
commit
0067afe12f
4 changed files with 12 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
- name: restart iptables
|
||||
service: name=iptables state=restarted
|
||||
|
||||
- name: restart docker
|
||||
command: systemctl try-restart docker
|
||||
|
||||
- name: restart ip6tables
|
||||
service: name=ip6tables state=restarted
|
||||
|
||||
|
|
|
@ -196,6 +196,7 @@
|
|||
notify:
|
||||
- restart iptables
|
||||
- reload libvirtd
|
||||
- restart docker
|
||||
tags:
|
||||
- iptables
|
||||
- config
|
||||
|
|
3
roles/mirrormanager/mirrorlist_proxy/files/daemon.json
Normal file
3
roles/mirrormanager/mirrorlist_proxy/files/daemon.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"live-restore": true
|
||||
}
|
|
@ -54,6 +54,11 @@
|
|||
tags:
|
||||
- mirrorlist_proxy
|
||||
|
||||
- name: setup daemon.json to not restart containers on docker service restarts
|
||||
copy: src=daemon.json dest=/etc/docker/daemon.json
|
||||
tags:
|
||||
- mirrorlist_proxy
|
||||
|
||||
- name: Run docker
|
||||
service: name=docker state=started enabled=yes
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue