community.network.iap_token module – Get token for the Itential Automation Platform
Note
This module is part of the community.network collection (version 5.1.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.network.
To use it in a playbook, specify: community.network.iap_token.
Note
The community.network collection has been deprecated and will be removed from Ansible 12. See the discussion thread for more information.
DEPRECATED
- Removed in:
- version 6.0.0 
- Why:
- This collection and all content in it is unmaintained and deprecated. 
- Alternative:
- Unknown. 
Synopsis
- Checks the connection to IAP and retrieves a login token. 
Aliases: network.itential.iap_token
Parameters
| Parameter | Comments | 
|---|---|
| Use HTTPS to connect By default using http Choices: 
 | |
| Provide the fqdn or ip-address for the Itential Automation Platform | |
| Provide the port number for the Itential Automation Platform | |
| Provide the password for the Itential Automation Platform | |
| Provide the username for the Itential Automation Platform | |
| If  Choices: 
 | 
Examples
- name: Get token for the Itential Automation Platform
  community.network.iap_token:
    iap_port: 3000
    iap_fqdn: localhost
    username: myusername
    password: mypass
  register: result
- ansible.builtin.debug: var=result.token
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| The token acquired from the Itential Automation Platform Returned: always | 
Status
- This module will be removed in version 6.0.0. [deprecated] 
- For more information see DEPRECATED. 
