# limitations under the License.
---
-# tasks file for k8s
+# tasks file for transferring kubeconfig files
- name: debug msg
debug:
msg: transfering config file to OCD Host
src: /root/.kube/config
dest: /root/.kube/config-{{ ansible_host }}
flat: yes
-
-- name: Fetch the file from the edge nodes to ocd-host
- run_once: yes
- fetch:
- src: /root/.kube/config
- dest: /root/.kube/kubeconfig/{{ ansible_host }}
- flat: yes
# limitations under the License.
---
-# tasks file for k8s
+# tasks file for transferring mep k3s cluster config file to mecm k8s
- name: debug msg
debug:
msg: transfering MEP kubeconfig files to MECM Server
- name: Transfer kubeconfig files from all MEP Nodes to MEP Server
- run_once: yes
copy:
src: /root/.kube/kubeconfig
dest: /
# yamllint disable rule:line-length
when: result.stdout == ""
-- name: "INSTALL: copy common folder to host for rabbitmg installation"
+- name: "INSTALL: copy common folder to host for rabbitmq installation"
copy:
src: common
dest: /tmp/rabbitmq/
when: result is failed
-- name: "INSTALL: Install common for rabbitmg installation"
+- name: "INSTALL: Install common for rabbitmq installation"
shell:
cmd: kubectl apply -f /tmp/rabbitmq/common
when: result is failed
-- name: "INSTALL: copy statefulset_x86.yaml to host for rabbitmg installation"
+- name: "INSTALL: copy statefulset_x86.yaml to host for rabbitmq installation"
copy:
src: statefulset_x86.yaml
dest: /tmp/rabbitmq/
cmd: kubectl apply -f /tmp/rabbitmq/statefulset_x86.yaml
when: result is failed and ansible_architecture == 'x86_64'
-- name: "INSTALL: copy statefulset_arm.yaml to host for rabbitmg installation"
+- name: "INSTALL: copy statefulset_arm.yaml to host for rabbitmq installation"
copy:
src: statefulset_arm.yaml
dest: /tmp/rabbitmq/