Skip to content

Commit

Permalink
correct clevis askpass unit conditional (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
headwest authored Oct 3, 2022
1 parent c25ed09 commit e0b5c30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/main-clevis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
name: "{{ __nbde_client_packages }}"
state: present

- name: Get services
service_facts:

- name: Enable clevis askpass unit
service:
name: clevis-luks-askpass.path
enabled: yes
when: ansible_distribution != "RedHat" or
(not ansible_distribution_version is version("8.2", "==") and
not ansible_distribution_version is version("8.3", "=="))
when: ansible_facts.services['clevis-luks-askpass.service'] is defined

- name: Generate nbde_client dracut config
template:
Expand Down

0 comments on commit e0b5c30

Please sign in to comment.