Fix of the delegation for the lxc caching
Currently the lxc caching process delegates the copy from the local host to the deployed node. If the localhost isn't a lxc node, the content will not be correct. This changes the delegation to the appropriate lxc node. Change-Id: I6fb23a7d3986c2eb5195ad0d64c4cba38b90a05b Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
This commit is contained in:
parent
aca3d5e01d
commit
5c9303e251
@ -13,12 +13,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# TODO(evrardjp): replace the delegate_to with remote_src: True
|
||||
# with ansible2.0
|
||||
- name: Copy files from the LXC host to the container cache
|
||||
local_action:
|
||||
module: copy
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/var/lib/lxc/LXC_NAME/rootfs{{ item }}"
|
||||
with_items: "{{ lxc_cache_map.copy_from_host }}"
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
tags:
|
||||
- lxc-cache
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user