From c48f27c42e77bcb1da6763ec6016dc9d8539e566 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 3 Aug 2022 13:53:54 +0200 Subject: [PATCH] Rebase pip packages --- ansible/roles/os/tasks/packages.yml | 7 ++++++- ansible/vars/metacluster.yml | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ansible/roles/os/tasks/packages.yml b/ansible/roles/os/tasks/packages.yml index 1c58d58..ce1f212 100644 --- a/ansible/roles/os/tasks/packages.yml +++ b/ansible/roles/os/tasks/packages.yml @@ -1,6 +1,6 @@ - name: Install additional packages ansible.builtin.apt: - pkg: "{{ packages }}" + pkg: "{{ packages.apt }}" state: latest update_cache: yes install_recommends: no @@ -11,6 +11,11 @@ state: latest update_cache: yes +- name: Install additional python packages + ansible.builtin.pip: + name: "{{ packages.pip }}" + state: latest + - name: Cleanup ansible.builtin.apt: autoremove: yes diff --git a/ansible/vars/metacluster.yml b/ansible/vars/metacluster.yml index 967a1ed..3e6eac4 100644 --- a/ansible/vars/metacluster.yml +++ b/ansible/vars/metacluster.yml @@ -146,7 +146,9 @@ dependencies: url: http://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64 packages: - - lvm2 - - python3-jmespath - - python3-passlib - - python3-pyvmomi + apt: + - lvm2 + pip: + - jmespath + - passlib + - pyvmomi