diff --git a/create_inventory_lxc.yml b/create_inventory_lxc.yml index 3a1feca..26eb3ea 100644 --- a/create_inventory_lxc.yml +++ b/create_inventory_lxc.yml @@ -90,6 +90,9 @@ template: download template_options: "-a amd64 -d {{ os_d }} -r {{ os_r }} {% if 'no-validate' in lxc_download_validate.stdout %}--no-validate{% endif %}" config: "{{ lxc_config_file|default('/etc/lxc/ansible.conf') }}" + container_config: + - "lxc.group = {{ os_d }}" + - "lxc.group = {{ (cmdline_python[os_d][0]).split(' ')[0].split('-')[0] }}" register: lxc_created delegate_to: "{{ ansible_host|default('localhost') }}"