syntropynet / syntropynet.syntropy / 0.1.4 / module / syntropy_login Logins to Syntropy Platform | "added in version" 0.1.0 of syntropynet.syntropy" Authors: Andrius Mikonis (@foxis)syntropynet.syntropy.syntropy_login (0.1.4) — module
Install with ansible-galaxy collection install syntropynet.syntropy:==0.1.4
collections: - name: syntropynet.syntropy version: 0.1.4
Logins to Syntropy Platform and returns API authorization token that can be used with other modules.
- name: Login syntropylogin: username: AUserName password: APassword register: api_token
- name: Gather facts syntropyfacts: api_token: '{{ api_token.token }}' register: facts
api_url: default: null description: - URL Of the Platform API. - This parameter is required if SYNTROPY_API_SERVER environment variable is not set. required: false type: str password: description: Password for the user. required: true type: str username: description: Username registered on Syntropy Platform. required: true type: str
error: description: Error message upon unsuccessful login. returned: always sample: Authorization failure type: str token: description: Retrieved API token upon successful login. returned: always sample: '{API token string}' type: str