ansible.builtin.stackdriver (v2.5.6) — module

Send code deploy and annotation events to stackdriver

| "added in version" 1.6 of ansible.builtin"

Authors: Ben Whaley (@bwhaley)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.5.6

Description

Send code deploy and annotation events to Stackdriver

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- stackdriver:
    key: AAAAAA
    event: deploy
    deployed_to: production
    deployed_by: leeroyjenkins
    repository: MyWebApp
    revision_id: abcd123
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- stackdriver:
    key: AAAAAA
    event: annotation
    msg: Greetings from Ansible
    annotated_by: leeroyjenkins
    level: WARN
    instance_id: i-abcd1234

Inputs

    
key:
    default: null
    description:
    - API key.
    required: true

msg:
    default: null
    description:
    - "The contents of the annotation message, in plain text. \_Limited to 256 characters.\
      \ Required for annotation."
    required: false

event:
    choices:
    - annotation
    - deploy
    default: null
    description:
    - The type of event to send, either annotation or deploy
    required: false

level:
    choices:
    - INFO
    - WARN
    - ERROR
    default: INFO
    description:
    - "one of INFO/WARN/ERROR, defaults to INFO if not supplied. \_May affect display."
    required: false

repository:
    default: null
    description:
    - The repository (or project) deployed
    required: false

deployed_by:
    default: Ansible
    description:
    - The person or robot responsible for deploying the code
    required: false

deployed_to:
    default: null
    description:
    - 'The environment code was deployed to. (ie: development, staging, production)'
    required: false

event_epoch:
    default: null
    description:
    - Unix timestamp of where the event should appear in the timeline, defaults to now.
      Be careful with this.
    required: false

instance_id:
    default: null
    description:
    - id of an EC2 instance that this event should be attached to, which will limit the
      contexts where this event is shown
    required: false

revision_id:
    default: null
    description:
    - The revision of the code that was deployed. Required for deploy events
    required: false

annotated_by:
    default: Ansible
    description:
    - "The person or robot\_who the annotation should be attributed to."
    required: false