1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix: vagrant vm lxd initialization

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2021-02-28 14:52:40 +01:00
parent 2e805f894f
commit 041ecd5161

View file

@ -47,7 +47,7 @@
vars: vars:
ansible_python_interpreter: python3 ansible_python_interpreter: python3
tasks: tasks:
- name: install apt packages - name: install test env required apt packages
apt: apt:
name: name:
- git - git
@ -74,7 +74,7 @@
loop: loop:
- lxc - lxc
- lxd - lxd
- name: install apt packages - name: install test script required apt packages
apt: apt:
name: name:
- python3-pexpect - python3-pexpect
@ -89,24 +89,7 @@
debug: debug:
var: ansible_local var: ansible_local
- name: initialize lxd - name: initialize lxd
expect: command: lxd init --auto
command: lxd init
responses:
(?i)Would you like to use LXD clustering: no
(?i)Do you want to configure a new storage pool: yes
(?i)Name of the new storage pool: default
(?i)Name of the storage backend to use: btrfs
(?i)Create a new BTRFS pool: yes
(?i)Would you like to use an existing empty block device: no
(?i)Size in GB of the new loop device: 24GB
(?i)Would you like to connect to a MAAS server: no
(?i)Would you like to create a new local network bridge: yes
(?i)What should the new bridge be called: lxdbr0
(?i)What IPv4 address should be used: auto
(?i)What IPv6 address should be used: auto
(?i)Would you like the LXD server to be available over the network: no
(?i)Would you like stale cached images to be updated automatically: yes
(?i)preseed to be printed: no
notify: notify:
- update local facts - update local facts
when: > when: >