Comment

Comment by GorsyGentle

Yes, this is 100% possible with the core ansible toolkit.

I don't have a copy of any of our playbooks on this as I'm at home and it's late. But it's basically just a couple of tasks.

Check out `ansible.builtin.pip` to setup and install the virtualenv and then just call `ansible.builtin.command` to run it explicitly. Implicit use of the venv can be accomplished via common task argument `env` which also lets one fiddle with PATH.

parent GorsyGentle 4 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton