# ansible-playbook Playbooks/01-UBUNTU-LXD.yml -i Inventories/QA -v -t 'deploy' --become-password-file .sudo_pass - hosts: ubuntu_lxd gather_facts: false tags: - deploy become: true tasks: - name: Update, Upgrade & Install dependencies become: true block: - apt: update_cache=yes upgrade=full - ansible.builtin.package: name="{{item}}" state=present with_items: - ansible - zfsutils-linux - python3-pip - lxc - build-essential - autoconf - libtool - pkg-config - idle-python2.7 - libgle3 - terraform - ansible.builtin.include_role: name=init_lxd - pip: name=pylxd - script: Playbooks/files/OpenLDAP.py #vars: # - lxd_init_template_config_path="/path/to/my/custom/template" ## Rollback - hosts: ubuntu_lxd tags: - rollback become: true tasks: - shell: "snap remove --purge lxd" - pip: name=lxc-python2 state=absent - ansible.builtin.package: name="{{item}}" state=absent with_items: - "ansible" - "zfsutils-linux" - "python3-pip" - "lxc"