[flatcar] add python dependency check for helm-apps (#10192)

* add pyyaml install via task instead of package

* Change condition for better consistency in the codebase
This commit is contained in:
palme
2023-06-13 02:51:58 +02:00
committed by GitHub
parent f8fadf53cd
commit 775851b00c
2 changed files with 27 additions and 0 deletions

View File

@@ -17,6 +17,11 @@
package:
name: "{{ pyyaml_package }}"
state: present
when: pyyaml_package is defined
- name: Helm | Install PyYaml [flatcar]
include_tasks: pyyaml-flatcar.yml
when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
- name: Helm | Download helm
include_tasks: "../../../download/tasks/download_file.yml"