use os_family
This commit is contained in:
@@ -7,13 +7,9 @@
|
||||
- name: Update cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when:
|
||||
- ansible_distribution == 'Debian'
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
- name: Upgrade packages
|
||||
apt:
|
||||
name: "*"
|
||||
state: latest
|
||||
when:
|
||||
- ansible_distribution == 'Debian'
|
||||
- ansible_distribution == 'Ubuntu'
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
Reference in New Issue
Block a user