tuxinvader.launchpad.start_interactive_login (1.0.7) — module

Perform the OAUTH authorization process for using a launchpad with a user account

| "added in version" 1.0.0 of tuxinvader.launchpad"

Authors: Mark Boddington (@TuxInvader)

Install collection

Install with ansible-galaxy collection install tuxinvader.launchpad:==1.0.7


Add to requirements.yml

  collections:
    - name: tuxinvader.launchpad
      version: 1.0.7

Description

This task should be called to get the request token url, and then wait_interactive_login should be called to complete the auth process

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Get the auth url for interactive login
- name: Start Interactive login
  start_interactive_login:
  register: login_start
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Prompt user
  debug:
    msg: "Please open this URL to authorize Ansible access: {{ login_start.authorization_url }}"

Outputs

authorization_url:
  description: The authorization url, open in your web browser and authorize the ansible
    client
  returned: always
  sample: https://launchpad.net/+authorize?key=askjlaksdj
  type: str
credentials:
  description: The request token credentials needed for exchange. Pass these to `wait_interactive_login`
  returned: always
  sample: '{"oauth_token": "", "oauth_token_secret": ""}'
  type: dict