The sr_fingerprint module was rewritten to accept structured parameters (status, role_name, role_path, etc.) instead of a free-form sr_message. Update the role tasks and tests to match the new module interface. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
---
|
|
- name: Ensure ansible_facts used by role
|
|
setup:
|
|
gather_subset: "{{ __aide_required_facts_subsets }}"
|
|
when: __aide_required_facts |
|
|
difference(ansible_facts.keys() | list) | length > 0
|
|
|
|
- name: Record role begin fingerprint
|
|
sr_fingerprint:
|
|
status: begin
|
|
role_name: aide
|
|
role_path: "{{ role_path }}"
|
|
ansible_play_hosts_all: "{{ ansible_play_hosts_all }}"
|
|
distribution: "{{ ansible_facts['distribution'] }}"
|
|
distribution_version: "{{ ansible_facts['distribution_version'] }}"
|
|
write_log_file: "{{ __aide_write_log_file }}"
|
|
|
|
- name: Determine if system is ostree and set flag
|
|
when: not __aide_is_ostree is defined
|
|
block:
|
|
- name: Check if system is ostree
|
|
stat:
|
|
path: /run/ostree-booted
|
|
register: __ostree_booted_stat
|
|
|
|
- name: Set flag to indicate system is ostree
|
|
set_fact:
|
|
__aide_is_ostree: "{{ __ostree_booted_stat.stat.exists }}"
|
|
|
|
- name: Set platform/version specific variables
|
|
include_vars: "{{ __vars_file }}"
|
|
loop:
|
|
- "{{ ansible_facts['os_family'] }}.yml"
|
|
- "{{ ansible_facts['distribution'] }}.yml"
|
|
- >-
|
|
{{ ansible_facts['distribution'] ~ '_' ~
|
|
ansible_facts['distribution_major_version'] }}.yml
|
|
- >-
|
|
{{ ansible_facts['distribution'] ~ '_' ~
|
|
ansible_facts['distribution_version'] }}.yml
|
|
vars:
|
|
__vars_file: "{{ role_path }}/vars/{{ item }}"
|
|
when: __vars_file is file
|