ansible-role-basic-system-s.../tasks/ansible-python3-pkgs.yml

23 lines
586 B
YAML
Raw Normal View History

2022-06-11 17:38:48 +02:00
---
- name: Install some python3 packages on deb distributsions
block:
- name: Install some python3 packages on Ubuntu/Debian
apt:
pkg: '{{ ansible_python3_debs }}'
state: present
cache_valid_time: 1800
when: ansible_distribution_file_variety == "Debian"
tags: ['python', 'python3']
- name: Install some python3 packages on EL
block:
- name: Install some python3 packages on EL
yum:
pkg: '{{ ansible_python3_el }}'
state: present
when: ansible_distribution_file_variety == "RedHat"
tags: ['python', 'python3']