--- - hosts: localhost tasks: - name: Install LMDB Python package pip: name: lmdb - name: Setup test data script: test_db.py args: executable: "{{ ansible_python.executable }}"