diff --git a/roles/ind/grail/setup-pvenode.yml b/roles/ind/grail/setup-pvenode.yml index 7218ef8..11fae0f 100644 --- a/roles/ind/grail/setup-pvenode.yml +++ b/roles/ind/grail/setup-pvenode.yml @@ -25,6 +25,10 @@ block: | lxc.idmap: u 0 100000 1000 lxc.idmap: g 0 100000 1000 + lxc.idmap: g 44 44 1 + lxc.idmap: g 104 104 1 + lxc.idmap: g 45 100045 57 + lxc.idmap: g 104 100045 61 marker: "#{' ' * line_length}# ANSIBLE MANAGED BLOCK" - name: Add mount entry for /dev/net @@ -45,14 +49,6 @@ regexp: '^lxc\.cgroup2\.devices\.allow:' line: "lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir" - - name: Add remaining idmap configurations - blockinfile: - path: "{{ config_file }}" - block: | - lxc.idmap: u 1000 1000 64536 - lxc.idmap: g 1000 1000 64536 - marker: "#{' ' * line_length}# ANSIBLE MANAGED BLOCK" - - name: Start LXC container 218 shell: "pct start 218" register: start_result