Skip to content

Commit

Permalink
Fix #1331 - Improve passlib instructions
Browse files Browse the repository at this point in the history
Updates the error message when `passlib` isn't installed on macOS.

This recommends using trellis-cli as the main solution but still
provides a manual method including better options for install pip.
  • Loading branch information
swalkinshaw committed Dec 11, 2021
1 parent 4896d76 commit 19bdce6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,21 @@
- name: Check whether passlib is needed
fail:
msg: |
Ansible on OS X requires python passlib module to create user password hashes
Ansible on macOS requires Python's passlib module to create user password hashes
If you're seeing this error message, you likely didn't use trellis-cli to create your project.
We highly recommend installing and using trellis-cli to manage your Trellis projects.
See https://github.com/roots/trellis-cli for more documentation.
For existing projects, you can run `trellis init` which will manage the dependencies automatically and fix this problem
as long as you use the `trellis` commands (like `trellis provision`) afterwards.
To fix this manually, use pip to install the package: pip install passlib
If pip is not installed, you'll have to install it first.
See https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x for many options.
sudo easy_install pip
pip install passlib
when: env != 'development' and darwin_without_passlib | default(false)
run_once: true

Expand Down

0 comments on commit 19bdce6

Please sign in to comment.