Skip to content

Instantly share code, notes, and snippets.

@karthicraghupathi
Last active July 19, 2024 02:53
Show Gist options
  • Save karthicraghupathi/f418a78dd3d5f208c64c2c968d73396f to your computer and use it in GitHub Desktop.
Save karthicraghupathi/f418a78dd3d5f208c64c2c968d73396f to your computer and use it in GitHub Desktop.
Installing ansible ansible-galaxy ansible-lint and molecule on macOS using pipx

Here is how to use pipx to install ansible and related tools.

pipx install --include-deps ansible

pipx inject --include-apps ansible ansible-lint

pipx inject --include-apps ansible molecule

pipx inject ansible 'molecule-plugins[podman,vagrant]'

pipx install yamllint

You can also install ansible using a specific python interpreter available on your system like so:

pipx install --include-deps --python ~/.asdf/installs/python/3.11.4/bin/python ansible

The rest of the commands remain the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment