# 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: true 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=mrlesmithjr.zfs # vars: # zfs_create_pools: true # zfs_pools: # - name: lxd_pool # devices: # - xvdb # type: basic # state: present # compression: lz4 # action: create - 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 - include_role: name=install_terraform vars: terraform_version: latest terraform_default_path: "~/.local/bin"