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:
Khue Doan 2021-05-17 01:15:49 +07:00
parent fd6ab62a12
commit d577dfbaab

View File

@ -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: