Skip to content

Instantly share code, notes, and snippets.

@Spredzy
Created October 26, 2022 08:25
Show Gist options
  • Save Spredzy/0652fbf2f464fb864cfe0e674f02f007 to your computer and use it in GitHub Desktop.
Save Spredzy/0652fbf2f464fb864cfe0e674f02f007 to your computer and use it in GitHub Desktop.
- hosts: localhost
gather_facts: false
tasks:
# Create project and upload jobs
#
- name: Gather available templates
community.memsource.memsource_project_template_info:
filters:
templateName: 'Ansible Automation Platform Documentation'
register: memsource_templates
- name: Set template id
set_fact:
project_template_id: "{{ memsource_templates.templates[0]['id'] | int }}"
- name: Create the Memsource project
community.memsource.memsource_project:
name: '[Ansible Controller 4.3.0] Docs Localization'
template_id: '{{ project_template_id }}'
register: workshop_project
- name: Upload japanese files for translation
community.memsource.memsource_job:
project_uid: '{{ workshop_project.project["uid"] }}'
langs:
- ja
- zh_cn
filename: '{{ item }}'
split_filename_on_dir: true
use_project_file_import_settings: true
loop:
- file1
- file2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment