summaryrefslogtreecommitdiffstats
path: root/ansible/roles/k8s-persistent-volume/tasks/main.yml
blob: 94f4e0b3a4ffe6497f8ea511ac2300bf04296868 (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: Install OpenShift Python client library  # community.kubernetes.k8s module dependency
  package:
    name: 'python2-openshift'
    state: present

- name: Create k8s persistent volumes
  community.kubernetes.k8s:
    wait: True
    template: pv.yaml.j2
  loop: "{{ k8s_volumes }}"