devpi-installed

Example:

# Install the devpi python package in it's own virtualenv.
- devpi-installed:
    devpi_user: devpi
    devpi_host: localhost
    devpi_root_password: password123

Description

Install a devpi Python package repository.

If a password is provided but one is already set on the service, this will fail and the error will be ignored.

Resources

Variables

Name Type Default Description

admin_password

string --

If a password is already set, this will fail and the error will be ignored.

devpi_server_base

string --

Only set that if you know what you are doing.

devpi_virtualenv

string --

Only set that if you know what you are doing.

host

n/a localhost

The domain/ip to listen on, defaults to 'localhost'.

port

integer 3141

The port to listen on.

user

n/a {{ ansible_env.USER }}

The user to run the devpi service.

Examples

Example 1

Install the devpi python package in it's own virtualenv.

Code
- devpi-installed:
    devpi_user: devpi
    devpi_host: localhost
    devpi_root_password: password123

Command-line

frecklecute devpi-installed --help

Usage: frecklecute devpi-installed [OPTIONS]

  Install a devpi Python package repository.

  If a password is provided but one is already set on the service, this will
  fail and the error will be ignored.

Options:
  --admin-password ADMIN_PASSWORD
                                  The initial admin password.
  --devpi-server-base DEVPI_SERVER_BASE
                                  The folder for the devpi server folder.
  --devpi-virtualenv DEVPI_VIRTUALENV
                                  The folder for the devpi virtualenv.
  --host HOST                     The domain/ip to listen on, defaults to
                                  'localhost'.  [default: localhost]
  --port PORT                     The port to listen on.  [default: 3141]
  --user USER                     The user to run the devpi service.
                                  [default: {{ ansible_env.USER }}]
  --help                          Show this message and exit.