Update structure of local-path for install/remove
This commit is contained in:
parent
aa28df3bf6
commit
7cb826a8f1
4 changed files with 32 additions and 121 deletions
|
|
@ -1,20 +1,6 @@
|
|||
- name: Local Path setup
|
||||
block:
|
||||
- name: local-path-storage 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
|
||||
- include_tasks: "local.yml"
|
||||
|
||||
- name: Select the default StorageClass
|
||||
k8s:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue