Modified the sequence of exection of tasks 07/3507/1
authorabhijit_onap <abhijit.das.gupta@huawei.com>
Mon, 25 May 2020 12:40:56 +0000 (18:10 +0530)
committerabhijit_onap <abhijit.das.gupta@huawei.com>
Mon, 25 May 2020 12:40:56 +0000 (18:10 +0530)
Added some comments in the various tasks

Signed-off-by: abhijit_onap <abhijit.das.gupta@huawei.com>
Change-Id: Ie9e269cf7cb9ef381ca69946dbd2e0c89be0f1d5

ocd/infra/playbooks/ealt-all.yml
ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml
ocd/infra/playbooks/roles/mepconfig/tasks/install.yml
ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml
ocd/infra/playbooks/roles/rabbitmq/tasks/install.yml

index 236de37..3f5a87a 100644 (file)
@@ -32,6 +32,7 @@
   - mep
 
   roles:
+  - docker
   - k3s
 
 - hosts: infra-helm
@@ -53,7 +54,6 @@
   - helm
   - grafana
   - kubeconfig
-  - mepconfig
   - applcm
 
 - hosts: mep
   - mep
 
   roles:
-  - docker
-  - k3s
   - helm
   - rabbitmq
   - prometheus
   - kubeconfig
+  - mepkubeconfig
   - cadvisor
 
+- hosts: mecm
+  become: yes
+  tags:
+  - infra
+  - infra-mecm
+  - mecm
+
+  roles:
+  - mepconfig
+
 - hosts: mepautomate
   become: yes
   tags:
index 149a776..2a0299a 100644 (file)
@@ -13,7 +13,7 @@
 # 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
index 7055f9d..180f787 100644 (file)
 # 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: /
index 334a9e4..4602232 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 ---
-# tasks file for k8s
+# tasks file for k3s kube-config file transfer
 - name: debug msg
   debug:
     msg: transfering mep config file to OCD Host
index 5edeed7..d3113d3 100644 (file)
 # 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/
@@ -52,7 +52,7 @@
     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/