ansible_lxd_tests/Playbooks/01-UBUNTU-LXD.yml

63 lines
1.7 KiB
YAML
Raw Normal View History

2022-07-28 20:52:07 -03:00
# ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v -t 'deploy' --become-password-file .sudo_pass
2022-07-17 01:24:18 -03:00
- hosts: ubuntu_lxd
2022-08-05 01:34:36 -03:00
gather_facts: true
2022-07-28 20:52:07 -03:00
tags:
- deploy
2022-09-29 18:20:55 -03:00
become: true
2022-07-16 23:28:28 -03:00
tasks:
2022-09-29 18:20:55 -03:00
# - name: Update, Upgrade & Install dependencies
# become: true
# block:
# - apt: update_cache=yes upgrade=full
# - package: name="{{item}}" state=present
# with_items:
# #- ansible
# - lxc
# - zfsutils-linux
# - unzip
# - shell: python3 -m pip install --upgrade pip
# - include_role: name=mrlesmithjr.zfs
# vars:
# zfs_create_pools: true
# zfs_pools:
# - name: lxd_pool
# devices:
# - xvdb
# type: basic
# state: present
# compression: lz4
# action: create
2022-07-16 23:28:28 -03:00
2022-09-29 18:20:55 -03:00
- include_role: name=rjlasko.ansible.lxd
vars:
lxd:
host:
preseed:
networks: []
storage_pools:
- name: default
description: "default storage pool (zfs)"
driver: zfs
config:
source: "lxd_pool/containers"
profiles:
- name: default
description: "default profile"
config: {}
devices:
root:
path: /
pool: default
type: disk
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
2022-08-05 01:34:36 -03:00
- include_role: name=install_terraform
vars:
terraform_version: latest
2022-09-29 18:20:55 -03:00
terraform_default_path: "~/.local/bin"