Skip to content

fix(helm): add pyyaml install task for fedora coreos #12269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion roles/kubernetes-apps/helm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
package:
name: "{{ pyyaml_package }}"
state: present
when: pyyaml_package is defined
when:
- pyyaml_package is defined
- not is_fedora_coreos

- name: Helm | Install PyYaml [flatcar]
include_tasks: pyyaml-flatcar.yml
when: ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]

- name: Helm | Install PyYaml [Fedora CoreOS]
include_tasks: pyyaml-fedora-coreos.yml
when: is_fedora_coreos

- name: Helm | Download helm
include_tasks: "../../../download/tasks/download_file.yml"
vars:
Expand Down
9 changes: 9 additions & 0 deletions roles/kubernetes-apps/helm/tasks/pyyaml-fedora-coreos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: Get package facts
ansible.builtin.package_facts:
manager: rpm

- name: Install PyYAML
community.general.rpm_ostree_pkg:
name: "{{ pyyaml_package }}"
when: "pyyaml_package not in ansible_facts.packages"