Created
October 26, 2022 08:25
-
-
Save Spredzy/0652fbf2f464fb864cfe0e674f02f007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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