From 4eabd100dd84f30aba5287e8af190badab0317e0 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sat, 11 Jun 2022 17:38:48 +0200 Subject: [PATCH] Add the file that executes the tasks. --- tasks/ansible-python3-pkgs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tasks/ansible-python3-pkgs.yml diff --git a/tasks/ansible-python3-pkgs.yml b/tasks/ansible-python3-pkgs.yml new file mode 100644 index 0000000..2c9fa86 --- /dev/null +++ b/tasks/ansible-python3-pkgs.yml @@ -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'] +