Add the file that executes the tasks.

This commit is contained in:
Andrea Dell'Amico 2022-06-11 17:38:48 +02:00
parent b92c84dc79
commit 4eabd100dd
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
---
- 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']