Update handler names and explanation
This commit is contained in:
parent
8b5072b291
commit
5e9f27f95b
1 changed files with 8 additions and 4 deletions
|
@ -4,14 +4,18 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
notify: Flannel | restart docker
|
notify: Flannel | restart docker
|
||||||
|
|
||||||
|
# special cases for atomic because it defaults to live-restore: true
|
||||||
|
# So we disable live-restore to pickup the new flannel IP. After
|
||||||
|
# we enable it, we have to restart docker again to pickup the new
|
||||||
|
# setting and restore the original behavior
|
||||||
- name: Flannel | restart docker
|
- name: Flannel | restart docker
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
- Flannel | reload systemd
|
- Flannel | reload systemd
|
||||||
- Flannel | reload docker.socket
|
- Flannel | reload docker.socket
|
||||||
- Flannel | reconfigure docker restart behavior (atomic)
|
- Flannel | configure docker live-restore true (atomic)
|
||||||
- Flannel | reload docker
|
- Flannel | reload docker
|
||||||
- Flannel | restore docker restart behavior (atomic)
|
- Flannel | configure docker live-restore false (atomic)
|
||||||
- Flannel | reload docker (atomic)
|
- Flannel | reload docker (atomic)
|
||||||
- Flannel | pause while Docker restarts
|
- Flannel | pause while Docker restarts
|
||||||
- Flannel | wait for docker
|
- Flannel | wait for docker
|
||||||
|
@ -25,7 +29,7 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
|
when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
|
||||||
|
|
||||||
- name: Flannel | reconfigure docker restart behavior (atomic)
|
- name: Flannel | configure docker live-restore true (atomic)
|
||||||
replace:
|
replace:
|
||||||
name: /etc/docker/daemon.json
|
name: /etc/docker/daemon.json
|
||||||
regexp: '"live-restore":.*true'
|
regexp: '"live-restore":.*true'
|
||||||
|
@ -37,7 +41,7 @@
|
||||||
name: docker
|
name: docker
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: Flannel | restore docker restart behavior (atomic)
|
- name: Flannel | configure docker live-restore false (atomic)
|
||||||
replace:
|
replace:
|
||||||
name: /etc/docker/daemon.json
|
name: /etc/docker/daemon.json
|
||||||
regexp: '"live-restore": false'
|
regexp: '"live-restore": false'
|
||||||
|
|
Loading…
Reference in a new issue