community / community.network / 5.0.2 / module / iap_token Get token for the Itential Automation Platform Authors: Itential (@cma0) <opensource@itential.com>community.network.iap_token (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
Checks the connection to IAP and retrieves a login token.
- 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
https: default: false description: - Use HTTPS to connect - By default using http type: bool iap_fqdn: default: null description: - Provide the fqdn or ip-address for the Itential Automation Platform required: true iap_port: default: null description: - Provide the port number for the Itential Automation Platform required: true password: default: null description: - Provide the password for the Itential Automation Platform required: true username: default: null description: - Provide the username for the Itential Automation Platform required: true validate_certs: default: false description: - If C(no), SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates. type: bool
token: description: The token acquired from the Itential Automation Platform returned: always type: str