trallnag.poetry

role quality downloads

Ansible Role for Python Poetry

Ansible role that installs Python Poetry on Linux.

Available on Ansible Galaxy.

Content

  • Installs Python Poetry via the official installer script.
  • Adds init block to ~/.bashrc.
  • Enables tab completion for Bash.

Role Variables

poetry_version:
  default: 1.1.7
  type: raw
  required: false
  description: >-
    Poetry version to install. Will be passed together with the `--version`
    flag to the poetry installer. Check at <https://github.com/python-poetry/poetry>.

poetry_python_path:
  default: python
  type: raw
  required: false
  description: >-
    Python executable that should be used for installation of Poetry.

Example Playbook

- name: Playbook
  hosts: myhost
  remote_user: myuser
  vars:
    rolespec_validate: true
  roles:
    - name: trallnag.poetry
      vars:
        poetry_version: 1.1.7
        poetry_python_path: python

Special Requirements

  • Passwordless sudo must be working. Required for activating tab completion for Bash. Could be refactored if need arises.

Special Dependencies

None.

License

Apache-2.0

Author Information

Trallnag

About

Installs Python Poetry on Linux

Install
ansible-galaxy install trallnag.poetry
GitHub repository
License
apache-2.0
Downloads
95