early storage operator work

This commit is contained in:
2022-11-02 14:48:24 +13:00
parent 73982fd7b7
commit 4d4977b164
5 changed files with 28 additions and 1 deletions

View File

@ -19,3 +19,10 @@
become: false
roles:
- k8s_taint
- name: configure storage operator
hosts: localhost
gather_facts: false
become: false
roles:
- k8s_storage

View File

@ -0,0 +1,2 @@
---
rook_version: "v1.10.4"

View File

@ -0,0 +1,17 @@
---
- name: create target directory for rook files
ansible.builtin.file:
path: "{{ ansible_search_path[0] }}/files/rook"
state: directory
mode: 0775
- name: download the rook manifests
ansible.builtin.uri:
url: https://raw.githubusercontent.com/rook/rook/{{ rook_version }}/deploy/examples/{{ item }}.yaml
dest: "{{ ansible_search_path[0] }}/files/rook/rook_{{ item }}_{{ rook_version }}.yaml"
creates: "{{ ansible_search_path[0] }}/files/rook/rook_{{ item }}_{{ rook_version }}.yaml"
mode: 0664
with_items:
- operator
- crds
- common