51 lines
2.2 KiB
YAML
51 lines
2.2 KiB
YAML
---
|
|
- name: Verify representative Narratio configuration
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Read the managed pipeline
|
|
become: true
|
|
ansible.builtin.slurp:
|
|
src: /usr/local/etc/narratio/pipeline.yml
|
|
register: narratio_managed_pipeline
|
|
|
|
- name: Verify representative pipeline fields
|
|
ansible.builtin.assert:
|
|
that:
|
|
- narratio_pipeline.workspace.cleanup_after_publish == false
|
|
- narratio_pipeline.campaigns.default_campaign_id == ''
|
|
- narratio_pipeline.spool.delete_audio_after_publish == false
|
|
- narratio_pipeline.cache.s3_audio == false
|
|
- narratio_pipeline.publish.enabled == false
|
|
- narratio_pipeline.publish.outputs[0].source == 'narratio.transcript.final_markdown'
|
|
- narratio_pipeline.publish.outputs[0].dest == 'transcripts/final.md'
|
|
- narratio_pipeline.publish.outputs[0].required == false
|
|
- narratio_pipeline.whisperx.retries == 0
|
|
- narratio_pipeline.seriatim.coalesce_gap == 0.0
|
|
- narratio_pipeline.seriatim.report == false
|
|
- narratio_pipeline.audita.modules == []
|
|
- narratio_pipeline.audita.report == false
|
|
- narratio_pipeline.trim.enabled == false
|
|
- narratio_pipeline.trim.bounds.render_debug == false
|
|
- narratio_pipeline.render.enabled == false
|
|
- narratio_pipeline.render.include_metadata == false
|
|
- narratio_pipeline.scriptorium.artifacts.disabled_fixture.enabled == false
|
|
- narratio_pipeline.scriptorium.artifacts.additional_disabled_fixture.enabled == false
|
|
- "'configkit' not in narratio_pipeline"
|
|
- "'storage' not in narratio_pipeline"
|
|
- "'normalize' not in narratio_pipeline"
|
|
vars:
|
|
narratio_pipeline: "{{ narratio_managed_pipeline.content | b64decode | from_yaml }}"
|
|
|
|
- name: Validate the representative pipeline as the Narratio account
|
|
become: true
|
|
become_user: narratio
|
|
ansible.builtin.command:
|
|
argv:
|
|
- /usr/local/bin/narratio
|
|
- config
|
|
- validate
|
|
- --config
|
|
- /usr/local/etc/narratio/pipeline.yml
|
|
changed_when: false
|