From 3b1b5a34bf7c01e1334f0487dca584defa3b2e90 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Fri, 18 May 2018 08:34:17 -0500 Subject: [PATCH] Add missing "delegate_to" All of the qgroup commands were failing due to them being executed inside the container instead of on the host running the container. this change adds the forgotten delegate_to to correct that. Change-Id: I0ff97d42fb20065613af24c65f523793a3b58fae Signed-off-by: Kevin Carter --- tasks/lxc_container_create_machinectl.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/lxc_container_create_machinectl.yml b/tasks/lxc_container_create_machinectl.yml index f671d9a..1d0a585 100644 --- a/tasks/lxc_container_create_machinectl.yml +++ b/tasks/lxc_container_create_machinectl.yml @@ -33,6 +33,7 @@ - name: Set the qgroup size|compression limits on machines command: "btrfs qgroup limit {{ item }} /var/lib/machines/{{ inventory_hostname }}" changed_when: false + delegate_to: "{{ physical_host }}" with_items: - "-e {{ lxc_host_machine_qgroup_space_limit }}" - "-c {{ lxc_host_machine_qgroup_compression_limit }}"