-- name: Install development packages For Debbian 9 stretch
+- name: Install development packages For Debian 9 stretch
become: true
apt:
autoclean: yes
]
state: latest
update_cache: yes
- when: ansible_facts.distribution_major_version == '9'
- when: ansible_facts.os_family == 'Debian'
+ when: ansible_facts.os_family == 'Debian' and ansible_facts.distribution_major_version == '9'
- name: Install development packages
become: true