Fix nspawn bind mount register process

Updates to the container common task file were made to correct an issue
which would result in a new container not getting restarted when a bind
mount was added.

Change-Id: I29948d54a015e367fbdef4d10360c1a5f544b550
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
(cherry picked from commit 348e406d9c)
This commit is contained in:
Kevin Carter 2018-08-21 11:06:36 -05:00 committed by Jesse Pretorius
parent aa100d4ecd
commit 62491a9e07

View File

@ -65,7 +65,7 @@
with_items:
- "{{ list_of_bind_mounts | default([]) }}"
delegate_to: "{{ physical_host }}"
register: _ec
register: add_bind
when:
- nspawn_systemd_version | int > 219
tags:
@ -114,7 +114,8 @@
delay: 5
delegate_to: "{{ physical_host }}"
when:
- _ec is changed
- (_ec is defined and _ec is changed) or
(add_bind is defined and add_bind is changed)
tags:
- common-nspawn