mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Remove LXD role
This commit is contained in:
parent
365a0a7eca
commit
98554e43f5
@ -1 +0,0 @@
|
||||
---
|
@ -1,27 +0,0 @@
|
||||
---
|
||||
- name: Install LXD
|
||||
package:
|
||||
name: lxd
|
||||
state: present
|
||||
|
||||
- name: Copy LXD preseed
|
||||
template:
|
||||
src: lxd_preseed.yml.j2
|
||||
dest: /tmp/lxd_preseed.yml
|
||||
|
||||
- name: Initialize LXD
|
||||
shell: "lxd init --preseed < /tmp/lxd_preseed.yml"
|
||||
|
||||
- name: Make LXD to be available over the network
|
||||
command: lxc config set core.https_address "[::]"
|
||||
|
||||
- name: Set password for new clients
|
||||
command: lxc config set core.trust_password "{{ lookup('env','LXD_PASSWORD') }}"
|
||||
|
||||
- name: Disable swap for Kubernetes
|
||||
command: swapoff -a
|
||||
|
||||
- name: Add the br_netfilter kernel module
|
||||
modprobe:
|
||||
name: br_netfilter
|
||||
state: present
|
@ -1,31 +0,0 @@
|
||||
config:
|
||||
core.https_address: "[::]:8443"
|
||||
core.trust_password: ""
|
||||
networks:
|
||||
- config:
|
||||
ipv4.address: auto
|
||||
ipv6.address: auto
|
||||
description: ""
|
||||
managed: false
|
||||
name: lxdbr0
|
||||
type: ""
|
||||
storage_pools:
|
||||
- config: {}
|
||||
description: ""
|
||||
name: default
|
||||
driver: dir
|
||||
profiles:
|
||||
- config: {}
|
||||
description: ""
|
||||
devices:
|
||||
eth0:
|
||||
name: eth0
|
||||
nictype: bridged
|
||||
parent: lxdbr0
|
||||
type: nic
|
||||
root:
|
||||
path: /
|
||||
pool: default
|
||||
type: disk
|
||||
name: default
|
||||
cluster: null
|
Loading…
Reference in New Issue
Block a user