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-08-05 01:34:36 -03:00
|
|
|
become: false
|
2022-07-16 23:28:28 -03:00
|
|
|
tasks:
|
2022-07-28 20:52:07 -03:00
|
|
|
- name: Update, Upgrade & Install dependencies
|
|
|
|
become: true
|
|
|
|
block:
|
|
|
|
- apt: update_cache=yes upgrade=full
|
2022-08-05 01:34:36 -03:00
|
|
|
- package: name="{{item}}" state=present
|
2022-07-28 20:52:07 -03:00
|
|
|
with_items:
|
2022-08-05 01:34:36 -03:00
|
|
|
#- ansible
|
2022-07-28 20:52:07 -03:00
|
|
|
- lxc
|
2022-08-05 01:34:36 -03:00
|
|
|
- zfsutils-linux
|
|
|
|
- unzip
|
|
|
|
- shell: python3 -m pip install --upgrade pip
|
2022-07-16 23:28:28 -03:00
|
|
|
|
2022-08-05 01:34:36 -03:00
|
|
|
#- include_role: name=init_lxd
|
|
|
|
- include_role: name=install_terraform
|
|
|
|
vars:
|
|
|
|
terraform_version: latest
|
|
|
|
terraform_default_path: "~/.local/bin"
|