mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-08 14:33:52 +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
|
creates: /var/lib/lxd/cluster.crt
|
||||||
when: inventory_hostname != groups['metal'][0]
|
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
|
# TODO (optimize) Use template for tfvars
|
||||||
- name: Add LXD server to environment variables
|
- name: Add LXD server to environment variables
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user