From 010b484d391e17dc42e54720db2e3811d09099aa Mon Sep 17 00:00:00 2001 From: abhijit_onap Date: Wed, 27 May 2020 17:55:25 +0530 Subject: [PATCH] Modifed playbooks to support multiple edge Added message to print on which OS k3s is being installed. Signed-off-by: abhijit_onap Change-Id: Idb8b34524710c9b14c31e40f6416192f1c05e078 --- ocd/infra/playbooks/roles/k3s/tasks/install.yml | 3 +++ ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml | 1 - ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ocd/infra/playbooks/roles/k3s/tasks/install.yml b/ocd/infra/playbooks/roles/k3s/tasks/install.yml index 9860a39..bef74d9 100644 --- a/ocd/infra/playbooks/roles/k3s/tasks/install.yml +++ b/ocd/infra/playbooks/roles/k3s/tasks/install.yml @@ -32,6 +32,9 @@ - debug: var=ansible_host +- debug: + msg: K3 Installation started on {{ ansible_facts['distribution'] }} MEP Node + - name: "INSTALL: Disabling firewall for successfull k3s installation on CentOs" shell: cmd: systemctl stop firewalld diff --git a/ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml b/ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml index 2a0299a..53ad150 100644 --- a/ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml +++ b/ocd/infra/playbooks/roles/kubeconfig/tasks/install.yml @@ -19,7 +19,6 @@ msg: transfering config file to OCD Host - name: Fetch the file from the controller and edge nodes to ocd-host - run_once: yes fetch: src: /root/.kube/config dest: /root/.kube/config-{{ ansible_host }} diff --git a/ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml b/ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml index 4602232..587f32b 100644 --- a/ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml +++ b/ocd/infra/playbooks/roles/mepkubeconfig/tasks/install.yml @@ -19,7 +19,6 @@ msg: transfering mep config file to OCD Host - name: Fetch the file from the mep edge nodes to ocd-host - run_once: yes fetch: src: /root/.kube/config dest: /root/.kube/kubeconfig/{{ ansible_host }} -- 2.16.6