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
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
fix(helm): add pyyaml install task for fedora coreos
The `package` ansible module uses the deprecated
`atomic_container` module for managing FCOS packages.

This commit switches FCOS to use the
`community.general_rpm_ostree_pkg` module instead.
  • Loading branch information
LiquidPL committed May 28, 2025
commit f01fb11abe25e3ae296a0036d6c14226e288fbe4
8 changes: 7 additions & 1 deletion roles/kubernetes-apps/helm/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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:
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"