Deprecated

Removed in 9.0.0

i

Reason:the endpoints this module relies on do not exist any more and do not resolve to IPs in DNS. | Alternative:no known alternative at this point

community.general.stackdriver (8.5.0) — module

Send code deploy and annotation events to stackdriver

Authors: Ben Whaley (@bwhaley)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Send code deploy and annotation events to Stackdriver

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Send a code deploy event to stackdriver
  community.general.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.
- name: Send an annotation event to stackdriver
  community.general.stackdriver:
    key: AAAAAA
    event: annotation
    msg: Greetings from Ansible
    annotated_by: leeroyjenkins
    level: WARN
    instance_id: i-abcd1234

Inputs

    
key:
    description:
    - API key.
    required: true
    type: str

msg:
    description:
    - The contents of the annotation message, in plain text. Limited to 256 characters.
      Required for annotation.
    type: str

event:
    choices:
    - annotation
    - deploy
    description:
    - The type of event to send, either annotation or deploy
    required: true
    type: str

level:
    choices:
    - INFO
    - WARN
    - ERROR
    default: INFO
    description:
    - one of INFO/WARN/ERROR, defaults to INFO if not supplied. May affect display.
    type: str

repository:
    description:
    - The repository (or project) deployed
    type: str

deployed_by:
    default: Ansible
    description:
    - The person or robot responsible for deploying the code
    type: str

deployed_to:
    description:
    - 'The environment code was deployed to. (ie: development, staging, production)'
    type: str

event_epoch:
    description:
    - Unix timestamp of where the event should appear in the timeline, defaults to now.
      Be careful with this.
    type: str

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

revision_id:
    description:
    - The revision of the code that was deployed. Required for deploy events
    type: str

annotated_by:
    default: Ansible
    description:
    - The person or robot who the annotation should be attributed to.
    type: str