tuxinvader / tuxinvader.launchpad / 1.0.4 / module / start_interactive_login 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)tuxinvader.launchpad.start_interactive_login (1.0.4) — module
Install with ansible-galaxy collection install tuxinvader.launchpad:==1.0.4
collections: - name: tuxinvader.launchpad version: 1.0.4
This task should be called to get the request token url, and then wait_interactive_login should be called to complete the auth process
# Get the auth url for interactive login - name: Start Interactive login start_interactive_login: register: login_start
- name: Prompt user debug: msg: "Please open this URL to authorize Ansible access: {{ login_start.authorization_url }}"
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