30 lines
857 B
YAML
30 lines
857 B
YAML
---
|
|
- name: Validate the managed Narratio pipeline
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Read the baseline pipeline
|
|
become: true
|
|
ansible.builtin.slurp:
|
|
src: /usr/local/etc/narratio/pipeline.yml
|
|
register: narratio_baseline_pipeline
|
|
|
|
- name: Verify null Notarius fields are omitted
|
|
ansible.builtin.assert:
|
|
that:
|
|
- "'notarius' not in narratio_pipeline"
|
|
vars:
|
|
narratio_pipeline: "{{ narratio_baseline_pipeline.content | b64decode | from_yaml }}"
|
|
|
|
- name: Validate the 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
|