mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Fix container failed to start
Error: Failed to run: /usr/bin/lxd forkstart tfstate /var/lib/lxd/containers /var/log/lxd/tfstate/lxc.conf
This commit is contained in:
parent
fd6ab62a12
commit
d577dfbaab
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user