Create and activate virtualenv

python3 -m venv .venv

Views0
PublishedJan 14, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

ansible-role-vector

This role installs and configures vector agent https://vector.dev/

Requirements

See requirements.txt

Role Variables

See defaults

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-vector
      vector_configure_sources:
        { vector sources dict }
      vector_configure_sinks:
        { vector sinks dict }

Test

Install requirements using virtualenv:

# Create and activate virtualenv
python3 -m venv .venv
sournce ./.venv/bin/activate
# Install requirements inside of virtualenv
python3 -m pip install -r requirements.txt

Test on Ubuntu 18.04 with vagrant

molecule test

Test on CentOS 7 with docker

molecule test --scenario-name docker

Makefile targets

TargetDescription
install_ansible_venvinstall ansible into local .venv using python3 -m venv
install_ansible_virtualenvinstall ansible into local .venv using virtualenv
molecule_init_scenariocreate scenario named MOLECULE_SCENARIO?=default using driver MOLECULE_DRIVER?=vagrant and role name MOLECULE_ROLE_NAME?=<current directory basename>
molecule_static_analyseexecute molecule lint and molecule syntax
molecule_createcreate molecule instances via molecule create
molecule_verifyapply playbook to existent instance and run tests (converge and verify)
molecule_testrun molecule test complex testing
molecule_destroyforce destroy instances molecule destroy -f

License

MIT

Author Information

Aleksey Koloskov aka vscoder

Share: