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