diff --git a/metal/roles/lxd/tasks/main.yml b/metal/roles/lxd/tasks/main.yml index 846e13c8..783368f1 100644 --- a/metal/roles/lxd/tasks/main.yml +++ b/metal/roles/lxd/tasks/main.yml @@ -55,6 +55,14 @@ creates: /var/lib/lxd/cluster.crt when: inventory_hostname != groups['metal'][0] +- name: Set subuid/subgid range for mapping container users/groups to host UIDs/GIDs + lineinfile: + path: "{{ item }}" + line: "root:1000000:65536" + loop: + - /etc/subuid + - /etc/subgid + # TODO (optimize) Use template for tfvars - name: Add LXD server to environment variables lineinfile: