PAM Python Tools

The PAM Ansible package includes Python code with two main entry points:

Name Script Notes
pamapi python/pamapi.py Commands that make calls to the PAM API.
pamtool python/pamtool.py Various PAM automation and utility commands.

These tools may be run from the PAM Ansible package as follows:

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python python/pamapi.py
python python/pamtool.py

Local Execution

Some Ansible PAM playbooks call the python tools on the local Ansible controller when setting up a new PAM farm. The playbooks and roles should be set up so this works automatically with no extra setup.

Remote Execution

Some Ansible PAM playbooks need to run the python tools on the remote host. This is how it works: