ansible_lxd_tests/Playbooks/01-UBUNTU-LXD.yml

25 lines
668 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
tags:
- deploy
become: false
tasks:
- 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=init_lxd
- include_role: name=install_terraform
vars:
terraform_version: latest
terraform_default_path: "~/.local/bin"