X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ocd%2Finfra%2Fplaybooks%2Froles%2Frabbitmq%2Ftasks%2Finstall.yml;h=5edeed7aeeac5f30c356a17612571227640bca7a;hb=7d2bf0bf6892cb363e61156577e66d0e655a21e3;hp=f3e433cb56940908f2f2fc4287ac527716e192c2;hpb=eb05c8bc1426f5fcc50d03b41ebec552e6db358d;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/rabbitmq/tasks/install.yml b/ocd/infra/playbooks/roles/rabbitmq/tasks/install.yml index f3e433c..5edeed7 100644 --- a/ocd/infra/playbooks/roles/rabbitmq/tasks/install.yml +++ b/ocd/infra/playbooks/roles/rabbitmq/tasks/install.yml @@ -21,38 +21,44 @@ no_log: True - debug: - msg: Rabbitmq is already present - when: result.rc == 0 + msg: rabbitmq is already present + when: result.stdout != "" -- name: copy common folder to host for rabbitmg installation +- debug: +# yamllint disable rule:line-length + msg: Ignore Uninstall Log , rabbitmq not installed continue with Installation +# yamllint disable rule:line-length + when: result.stdout == "" + +- name: "INSTALL: copy common folder to host for rabbitmg installation" copy: src: common dest: /tmp/rabbitmq/ when: result is failed -- name: Install common for rabbitmg installation +- name: "INSTALL: Install common for rabbitmg installation" shell: cmd: kubectl apply -f /tmp/rabbitmq/common when: result is failed -- name: copy statefulset_x86.yaml to host for rabbitmg installation +- name: "INSTALL: copy statefulset_x86.yaml to host for rabbitmg installation" copy: src: statefulset_x86.yaml dest: /tmp/rabbitmq/ when: result is failed and ansible_architecture == 'x86_64' -- name: Install rabbitmq on x86_64 +- name: "INSTALL: Install rabbitmq on x86_64" shell: cmd: kubectl apply -f /tmp/rabbitmq/statefulset_x86.yaml when: result is failed and ansible_architecture == 'x86_64' -- name: copy statefulset_arm.yaml to host for rabbitmg installation +- name: "INSTALL: copy statefulset_arm.yaml to host for rabbitmg installation" copy: src: statefulset_arm.yaml dest: /tmp/rabbitmq/ when: result is failed and ansible_architecture == 'aarch64' -- name: Install rabbitmq on aarch64 +- name: "INSTALL: Install rabbitmq on aarch64" shell: cmd: kubectl apply -f /tmp/rabbitmq/statefulset_arm.yaml when: result is failed and ansible_architecture == 'aarch64'