-- name: Install Python and packages
+- name: Install Python and packages (Debian)
become: true
apt:
autoclean: yes
register: python
when: ansible_facts.os_family == 'Debian'
-- name: Install Python and packages
+- name: Install Python and packages (RedHat)
become: true
dnf:
name: ['python2', 'python3', 'python2-pip', 'python3-pip',