Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ansible Collection - lagoon.api

An Ansible collection for interaction with the Lagoon GraphQL API.

Requirements

  • gql[requests] - The GraphQL client used to make requests. Install by running:

    pip3 install gql[requests]

Usage

The following variables are required in the playbook:

  • lagoon_api_endpoint
  • lagoon_api_token

Testing

Updating the schema:

lagoon config list
lagoon login -l amazeeio
LAGOON_TOKEN=$(lagoon -l amazeeio get token)
gql-cli https://api.lagoon.amazeeio.cloud/graphql --print-schema \
  --header Authorization:"Bearer $LAGOON_TOKEN" > api/tests/common/schema.graphql