# Ansible cannot find passlib when creating a user through Github Action

**URL:** <https://forum.ansible.com/t/ansible-cannot-find-passlib-when-creating-a-user-through-github-action/7874>\
**Category:** Get Help\
**Tags:** vmware, playbook, aws\
**Created:** [August 15, 2024, 1:57pm UTC](https://forum.ansible.com/t/ansible-cannot-find-passlib-when-creating-a-user-through-github-action/7874 "2024-08-15T13:57:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![konstruktoid](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/konstruktoid/32/10207_2.png) [@konstruktoid](https://forum.ansible.com/u/konstruktoid)\
**Post date:** [August 22, 2024, 5:53am UTC](https://forum.ansible.com/t/ansible-cannot-find-passlib-when-creating-a-user-through-github-action/7874/5 "2024-08-22T05:53:50Z")

</div>

I install passlib and dependencies when using GHA like this: [ansible-role-hardening/.github/workflows/molecule.yml at c62d9d4254cdf0dffdc63c28354a6a7c861199ed · konstruktoid/ansible-role-hardening · GitHub](https://github.com/konstruktoid/ansible-role-hardening/blob/c62d9d4254cdf0dffdc63c28354a6a7c861199ed/.github/workflows/molecule.yml)

```yaml
      - name: Install system dependencies
        run: |
          sudo apt-get update
          sudo apt-get --assume-yes --no-install-recommends install python3-pip
          python3 -m pip install --user -U ansible ansible-lint \
            jmespath molecule-plugins[docker] passlib
          python3 -m pip install --user 'requests==2.28.1'

```

---

_[View the full topic](https://forum.ansible.com/t/ansible-cannot-find-passlib-when-creating-a-user-through-github-action/7874)._
