From c67dc1b6e603f3b66ef2867dfae0f2a11ed721bd Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Mon, 20 Jul 2020 13:10:27 +0700 Subject: [PATCH] Add lxd Ansible role --- roles/lxd/defaults/main.yml | 1 + roles/lxd/tasks/main.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 roles/lxd/defaults/main.yml create mode 100644 roles/lxd/tasks/main.yml diff --git a/roles/lxd/defaults/main.yml b/roles/lxd/defaults/main.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/roles/lxd/defaults/main.yml @@ -0,0 +1 @@ +--- diff --git a/roles/lxd/tasks/main.yml b/roles/lxd/tasks/main.yml new file mode 100644 index 00000000..94576c5c --- /dev/null +++ b/roles/lxd/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Install LXD + snap: + name: lxd + classic: yes + +- name: Initialize LXD + command: lxd init --auto