restart docker service on iptables reloads, and set docker to not restart containers on service restarts

This commit is contained in:
Kevin Fenzi 2017-10-12 21:46:01 +00:00
parent 857375657f
commit 0067afe12f
4 changed files with 12 additions and 0 deletions

View file

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

View file

@ -196,6 +196,7 @@
notify:
- restart iptables
- reload libvirtd
- restart docker
tags:
- iptables
- config

View file

@ -0,0 +1,3 @@
{
"live-restore": true
}

View file

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