mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Set subuid/subgid before starting LXD
This commit is contained in:
parent
15c8bb19f1
commit
613a72ea65
@ -29,6 +29,14 @@
|
||||
- qemu-device-display-virtio-vga
|
||||
- qemu-device-display-virtio-gpu
|
||||
|
||||
- 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
|
||||
|
||||
- name: Enable LXD service
|
||||
service:
|
||||
name: lxd
|
||||
@ -55,14 +63,6 @@
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user