This commit is contained in:
parent
59de075a0a
commit
8ddacfec51
28 changed files with 610 additions and 21 deletions
|
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
- name: Include file list
|
||||
include_vars: "local.yaml"
|
||||
|
||||
- name: Defined local-path-storage state to present
|
||||
set_fact:
|
||||
storage_localpath_state: present
|
||||
|
|
@ -16,12 +19,6 @@
|
|||
state: "{{ storage_localpath_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
resource_definition: "{{ lookup('file', 'local/' + 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"
|
||||
- "{{ storage_localpath_files_list }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue