
- name: integration/stub_connections/lxd.yml
  hosts: test-targets
  gather_facts: false
  tasks:
  - include_tasks: ../_mitogen_only.yml

  - custom_python_detect_environment:
    vars:
      ansible_connection: lxd
      ansible_python_interpreter: "{{ ansible_playbook_python }}"
      mitogen_lxc_path: stub-lxc.py
    register: out

  - assert:
      that:
      - out.env.THIS_IS_STUB_LXC == '1'
      fail_msg: |
        out={{ out }}
  tags:
    - lxd
    - mitogen_only
