ansible_lxd_tests/Playbooks/01-UBUNTU-LXD.yml

27 lines
677 B
YAML

# ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v -t 'deploy' --become-password-file .sudo_pass
- hosts: ubuntu_lxd
gather_facts: true
gather_subset:
- "min"
tags:
- deploy
vars:
ssh_key_file: "/root/.ssh/lxd"
tasks:
- 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=install_lxd
- include_role: name=install_terraform
vars:
terraform_version: latest
terraform_default_path: "~/.local/bin"