Remove LXD role

This commit is contained in:
Khue Doan 2020-10-11 12:57:06 +07:00
parent 365a0a7eca
commit 98554e43f5
3 changed files with 0 additions and 59 deletions

View File

@ -1 +0,0 @@
---

View File

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

View File

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