Skip to content

Commit

Permalink
add acs version validation for audit-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Nov 28, 2024
1 parent de5e01a commit fd59dbe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions playbooks/acs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,16 @@
- name: Audit Storage Role
hosts: audit_storage
gather_facts: false
vars:
acs_version_requirement: "{{ acs.version is version('23.4', 'ge') }}"
pre_tasks:
- name: Assert that the required version is met
ansible.builtin.fail:
msg: "Audit Storage requires ACS 23.4 or later"
when: not acs_version_requirement
roles:
- role: "../roles/audit_storage"
when: acs.edition == "Enterprise"
when: acs.edition == "Enterprise" and acs_version_requirement
audit_storage_version: "{{ audit_storage.version }}"
audit_storage_zip_url: "{{ downloads.audit_storage_zip_url }}"
audit_storage_zip_sha1_url: "{{ downloads.audit_storage_zip_sha1_checksum_url }}"
Expand All @@ -499,7 +506,7 @@
audit_storage_opensearch_password: "{{ elasticsearch_password }}"
post_tasks:
- name: Update installation status file with Audit Storage
when: acs.edition == "Enterprise"
when: acs.edition == "Enterprise" and acs_version_requirement
become: true
vars:
audit_storage_components:
Expand Down

0 comments on commit fd59dbe

Please sign in to comment.