Skip to content
Open
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
11 changes: 10 additions & 1 deletion roles/tackle/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
---
- name: "Get Cluster information"
kubernetes.core.k8s_cluster_info:
register: api_status

- name: "Create cluster API group list"
set_fact:
api_groups: []

- name: "Load cluster API groups"
set_fact:
api_groups: "{{ lookup('k8s', cluster_info='api_groups') }}"
api_groups: "{{ (api_groups + [(item | regex_replace('/?v\\d.*'))]) | unique }}"
with_items: "{{ api_status.apis | list }}"

- name: "Transfer rwx_storage_class setting if hub_bucket_storage_class is not defined"
set_fact:
Expand Down