You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
628 B
32 lines
628 B
---
|
|
#
|
|
# DECORT vins module example
|
|
#
|
|
|
|
- hosts: localhost
|
|
tasks:
|
|
- name: obtain JWT
|
|
decort_jwt:
|
|
oauth2_url: "https://sso.digitalenergy.online"
|
|
validity: 1200
|
|
register: my_jwt
|
|
delegate_to: localhost
|
|
|
|
- name: print out JWT
|
|
debug:
|
|
var: my_jwt.jwt
|
|
delegate_to: localhost
|
|
|
|
- name: Manage bservice at RG
|
|
decort_bservice:
|
|
account_id: 98
|
|
verify_ssl: false
|
|
authenticator: jwt
|
|
jwt: "{{ my_jwt.jwt }}"
|
|
controller_url: "https://ds1.digitalenergy.online"
|
|
rg_id: 1629
|
|
state: present
|
|
name: databases
|
|
started: True
|
|
register: db_bservice
|