Squashed 'roles/pipeline/' changes from 0f841fd..63f1dd4

63f1dd4 Use explicit prompt variants for previous-session context
12cdc04 Support optional Narratio reference catalogs
76aec69 Remove generated Python bytecode
e4f0c8f Integrate the native D&D application suite

git-subtree-dir: roles/pipeline
git-subtree-split: 63f1dd4fb43744c4df3f06c0f909c843f6eb68d0
This commit is contained in:
2026-12-04 03:40:26 +00:00
parent d5563c5736
commit c53076c12a
10 changed files with 585 additions and 1030 deletions

View File

@@ -73,7 +73,7 @@
state: present
loop: >-
{{
['/var/lib/narratio', '/var/spool/narratio', '/var/cache/narratio', dnd_pipeline_notarius_cache_root] |
['/var/lib/narratio', dnd_pipeline_notarius_cache_root] |
product([
{'etype': 'user', 'permissions': 'rwx'},
{'etype': 'group', 'permissions': 'rwx'},
@@ -94,7 +94,7 @@
state: present
loop: >-
{{
['/var/lib/narratio', '/var/spool/narratio', '/var/cache/narratio', dnd_pipeline_notarius_cache_root] |
['/var/lib/narratio', dnd_pipeline_notarius_cache_root] |
product([
{'etype': 'user', 'permissions': 'rwx'},
{'etype': 'group', 'permissions': 'rwx'},
@@ -132,6 +132,34 @@
update: true
force: true
- name: Require a revision for a selected reference catalog
ansible.builtin.assert:
that:
- dnd_pipeline_reference_catalog_revision is string
- dnd_pipeline_reference_catalog_revision | length > 0
fail_msg: A reference catalog repository requires a nonempty revision.
when: dnd_pipeline_reference_catalog_repository_url is not none
- name: Create the reference catalog root
become: true
ansible.builtin.file:
path: "{{ dnd_pipeline_reference_catalog_root }}"
state: directory
owner: root
group: "{{ dnd_pipeline_runtime_group }}"
mode: "0755"
when: dnd_pipeline_reference_catalog_repository_url is not none
- name: Deploy the selected reference catalog
become: true
ansible.builtin.git:
repo: "{{ dnd_pipeline_reference_catalog_repository_url }}"
dest: "{{ dnd_pipeline_reference_catalog_root }}"
version: "{{ dnd_pipeline_reference_catalog_revision }}"
update: true
force: true
when: dnd_pipeline_reference_catalog_repository_url is not none
- name: Create Narratio configuration directories
become: true
ansible.builtin.file:
@@ -158,25 +186,6 @@
- pipelines
- overlays
- name: Create the Audita profile directory
become: true
ansible.builtin.file:
path: /usr/local/etc/audita/profiles
state: directory
owner: "{{ dnd_pipeline_runtime_user }}"
group: "{{ dnd_pipeline_runtime_group }}"
mode: "{{ dnd_pipeline_config_directory_mode }}"
- name: Deploy Audita profiles
become: true
ansible.builtin.template:
src: audita-profile.yml.j2
dest: "/usr/local/etc/audita/profiles/{{ item.key }}.yml"
owner: "{{ dnd_pipeline_runtime_user }}"
group: "{{ dnd_pipeline_runtime_group }}"
mode: "{{ dnd_pipeline_config_file_mode }}"
loop: "{{ dnd_pipeline_audita_profiles | dict2items }}"
- name: Deploy the Notarius D&D pipeline configuration
become: true
ansible.builtin.template: