123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ---
- - name: Add kubernetes and grafana ansible-galaxy collection
- command: ansible-galaxy collection install "{{ item }}"
- with_items: "{{ collections_name }}"
- changed_when: false
- - name: Install PyYAML using pip3
- pip:
- name: PyYAML
- state: present
- executable: pip3
- extra_args: --ignore-installed
-
- - 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
|