ansible_lxd_tests/Playbooks/01-UBUNTU-LXD.yml

27 lines
677 B
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-09-15 00:18:11 -03:00
gather_subset:
- "min"
2022-07-28 20:52:07 -03:00
tags:
- deploy
2022-09-15 00:18:11 -03:00
vars:
ssh_key_file: "/root/.ssh/lxd"
2022-07-16 23:28:28 -03:00
tasks:
2022-09-15 00:18:11 -03:00
- become: true
2022-07-28 20:52:07 -03:00
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-09-15 00:18:11 -03:00
- include_role: name=install_lxd
2022-08-05 01:34:36 -03:00
- include_role: name=install_terraform
vars:
terraform_version: latest
terraform_default_path: "~/.local/bin"