Skip to content

Commit

Permalink
Add missing package when using helm role
Browse files Browse the repository at this point in the history
  • Loading branch information
j4m3s-s committed May 31, 2023
1 parent 148ff26 commit f5516c5
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions roles/kubernetes-apps/helm/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
---
- name: Helm | Gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
- defaults.yml
paths:
- ../vars
skip: true

- name: Helm | Install PyYaml
package:
name: "{{ pyyaml_package }}"
state: present

- name: Helm | Download helm
include_tasks: "../../../download/tasks/download_file.yml"
vars:
Expand Down
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/centos-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/centos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: python3-yaml
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/redhat-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/redhat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/helm/vars/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
pyyaml_package: python3-yaml

0 comments on commit f5516c5

Please sign in to comment.