use os_family
This commit is contained in:
@@ -18,6 +18,4 @@
|
||||
update_cache: yes
|
||||
state: "{{ state}}"
|
||||
autoremove: yes
|
||||
when:
|
||||
- ansible_distribution == 'Debian'
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
Reference in New Issue
Block a user