First release
This commit is contained in:
parent
f9305cfab1
commit
adca04dadf
13 changed files with 260 additions and 0 deletions
39
tasks/main.yml
Normal file
39
tasks/main.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
- name: Local Path setup
|
||||
block:
|
||||
- name: namespace
|
||||
k8s:
|
||||
context: "{{ my_context }}"
|
||||
state: present
|
||||
name: kubernetes-dashboard
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
|
||||
- name: dashboard install
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "local/local-path-storage-Namespace.yaml"
|
||||
- "local/local-path-provisioner-service-account-ServiceAccount.yaml"
|
||||
- "local/local-path-provisioner-role-ClusterRole.yaml"
|
||||
- "local/local-path-provisioner-bind-ClusterRoleBinding.yaml"
|
||||
- "local/local-path-provisioner-Deployment.yaml"
|
||||
- "local/local-path-StorageClass.yaml"
|
||||
- "local/local-path-config-ConfigMap.yaml"
|
||||
when:
|
||||
- storage_localpath == true
|
||||
|
||||
- name: Select the default StorageClass
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: "{{ storage_default_storageclass }}"
|
||||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
when:
|
||||
- storage_default_storageclass is defined
|
||||
Loading…
Add table
Add a link
Reference in a new issue