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>
This commit is contained in:
Kevin Carter 2018-08-21 11:06:36 -05:00
parent ae70643e50
commit 348e406d9c
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
1 changed files with 3 additions and 2 deletions

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