Skip to content

Comments

[2.1.2] fix when condition for avahi#141

Merged
uk-bolly merged 1 commit intoansible-lockdown:develfrom
bykvaadm:fix_2.1.2_when
Feb 23, 2026
Merged

[2.1.2] fix when condition for avahi#141
uk-bolly merged 1 commit intoansible-lockdown:develfrom
bykvaadm:fix_2.1.2_when

Conversation

@bykvaadm
Copy link
Contributor

    - name: "2.1.2 | PATCH | Ensure avahi daemon services are not in use | Remove package"
      when:
        - not ubtu24cis_avahi_server
        - not ubtu24cis_avahi_mask
        - "'avahi' in ansible_facts.packages or 'avahi-autoipd' in ansible_facts.packages"
      ansible.builtin.package:
        name:
          - avahi-autoipd
          - avahi-daemon
        state: absent
        purge: "{{ ubtu24cis_purge_apt }}"

when clause is wrong, because of searching avahi package and trying to delete avahi-daemon instead. should be avahi-daemon everywhere

Signed-off-by: Kondratev Alexander <info@bykvaadm.ru>
@bykvaadm bykvaadm changed the title fix when condition for avahi 2.1.2 [2.1.2] fix when condition for avahi Feb 16, 2026
Copy link
Member

@uk-bolly uk-bolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super spot thank you

@uk-bolly uk-bolly merged commit f2e0717 into ansible-lockdown:devel Feb 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants