1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ---
- - name: Add kubernetes and grafana ansible-galaxy collection
- command: ansible-galaxy collection install "{{ item }}"
- with_items: "{{ collections_name }}"
- changed_when: false
-
- - name: Install openshift using pip3
- pip:
- name: openshift
- state: present
- executable: pip3
- - name: Create grafana namespace
- kubernetes.core.k8s:
- api_version: v1
- kind: Namespace
- name: "{{ grafana_namespace }}"
- state: present
- - name: Make grafana persistent directory if it doesnt exist
- file:
- path: "{{ mount_location + grafana_k8s }}"
- state: directory
- mode: "{{ directory_mode }}"
- group: root
- owner: root
|