use os_family

This commit is contained in:
2024-04-29 18:31:58 +05:30
parent b4eddd856d
commit bfa61a7d00

View File

@@ -18,6 +18,4 @@
update_cache: yes
state: "{{ state}}"
autoremove: yes
when:
- ansible_distribution == 'Debian'
- ansible_distribution == 'Ubuntu'
when: ansible_facts['os_family'] == "Debian"