2018-11-04 17:07:38 +08:00
|
|
|
---
|
|
|
|
- name: Multus | Copy manifest files
|
|
|
|
copy:
|
|
|
|
src: "{{ item.file }}"
|
|
|
|
dest: "{{ kube_config_dir }}"
|
2022-01-09 17:51:12 +08:00
|
|
|
mode: 0644
|
2018-11-04 17:07:38 +08:00
|
|
|
with_items:
|
|
|
|
- {name: multus-crd, file: multus-crd.yml, type: customresourcedefinition}
|
|
|
|
- {name: multus-serviceaccount, file: multus-serviceaccount.yml, type: serviceaccount}
|
|
|
|
- {name: multus-clusterrole, file: multus-clusterrole.yml, type: clusterrole}
|
|
|
|
- {name: multus-clusterrolebinding, file: multus-clusterrolebinding.yml, type: clusterrolebinding}
|
|
|
|
register: multus_manifest_1
|
|
|
|
|
|
|
|
- name: Multus | Copy manifest templates
|
|
|
|
template:
|
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
2022-01-09 17:51:12 +08:00
|
|
|
mode: 0644
|
2018-11-04 17:07:38 +08:00
|
|
|
with_items:
|
|
|
|
- {name: multus-daemonset, file: multus-daemonset.yml, type: daemonset}
|
|
|
|
register: multus_manifest_2
|