# -- config: images.auto_update_interval: "15" # -- networks: - name: {{network_default_name}} project: {{lxd_project_name}} type: bridge config: # IPv4 ipv4.nat: "true" ipv4.address: {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} # IPv6 ipv6.nat: "true" # -- storage_pools: - name: {{storage_pool}} driver: {{storage_pool_driver}} config: size: {{storage_pool_size}} source: /var/snap/lxd/common/lxd/disks/default.img # -- profiles: - name: {{lxd_project_name}} devices: eth0: name: eth0 network: {{network_default_name}} type: nic root: path: / pool: {{storage_pool}} type: disk # -- projects: - config: features.images: "true" features.networks: "true" features.profiles: "true" features.storage.volumes: "true" name: {{lxd_project_name}}