ansible.memsource.memsource_project_info (1.0.1) — module

Get the recent project from Memsource on passing the project name parameter.

| "added in version" 0.0.1 of ansible.memsource"

Authors: Yanis Guenane (@Spredzy)

Install collection

Install with ansible-galaxy collection install ansible.memsource:==1.0.1


Add to requirements.yml

  collections:
    - name: ansible.memsource
      version: 1.0.1

Description

Get the recent project from Memsource on passing the project name parameter


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Project by Project Name
  ansible.memsource.memsource_project_info:
    project_name: "{{ project_name }}"
  register: _project
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set Project UID from project name {{ _project }}
  set_fact: 
    project_uid: "{{ _project.projects.content[0].uid }}"

Inputs

    
project_name:
    description:
    - A string passed as the project name which matches the project name on Memsource
    required: true
    type: str

memsource_token:
    description:
    - The OAuth token to use to connect to cloud.memsource.com.
    type: str

memsource_password:
    description:
    - The password to use for BasicAuth to connect to cloud.memsource.com.
    type: str

memsource_username:
    description:
    - The username to use for BasicAuth to connect to cloud.memsource.com.
    type: str

Outputs

project:
  description: 'Returns the json response for the specified project name

    '
  returned: on success
  type: dict