summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
246be66)
Change-Id: Iaf1d803365a121c1cfaf620ddcc2e028183bb218
register: result
ignore_errors: 'True'
register: result
ignore_errors: 'True'
-- name: "This is for Add repo helm "
command: helm repo add code-chris https://code-chris.github.io/helm-charts
when: result is failed
command: helm repo add code-chris https://code-chris.github.io/helm-charts
when: result is failed
-- name: "This is for Update helm repo"
+- name: "Update helm repo"
command: helm repo update
when: result is failed
command: helm repo update
when: result is failed
dest: /tmp/cAdvisor/
when: result is failed
dest: /tmp/cAdvisor/
when: result is failed
-- name: "Command for install cAdvisor"
+- name: "Installing cAdvisor"
# yamllint disable rule:line-length
command: helm install cadvisor code-chris/cadvisor -f /tmp/cAdvisor/values.yaml
# yamllint disable rule:line-length
# yamllint disable rule:line-length
command: helm install cadvisor code-chris/cadvisor -f /tmp/cAdvisor/values.yaml
# yamllint disable rule:line-length
register: result
ignore_errors: 'True'
register: result
ignore_errors: 'True'
+- name: "If cAdvisor present, then list helm ls"
command: helm ls
when: result is succeeded
command: helm ls
when: result is succeeded
command: tar -zxvf helm-v3.0.2-linux-amd64.tar.gz
when: result is failed and ansible_architecture == 'x86_64'
command: tar -zxvf helm-v3.0.2-linux-amd64.tar.gz
when: result is failed and ansible_architecture == 'x86_64'
-- name: "Move to bin folder on x86_64"
+- name: "Helm move to bin folder on x86_64"
command: mv linux-amd64/helm /usr/local/bin/
when: result is failed and ansible_architecture == 'x86_64'
command: mv linux-amd64/helm /usr/local/bin/
when: result is failed and ansible_architecture == 'x86_64'
command: tar -zxvf helm-v3.0.2-linux-arm64.tar.gz
when: result is failed and ansible_architecture == 'aarch64'
command: tar -zxvf helm-v3.0.2-linux-arm64.tar.gz
when: result is failed and ansible_architecture == 'aarch64'
-- name: "Move to bin folder on aarch64"
+- name: "Helm move to bin folder on aarch64"
command: mv linux-arm64/helm /usr/local/bin/
when: result is failed and ansible_architecture == 'aarch64'
command: mv linux-arm64/helm /usr/local/bin/
when: result is failed and ansible_architecture == 'aarch64'
# yamllint disable rule:line-length
command: helm repo add stable https://kubernetes-charts.storage.googleapis.com/
# yamllint disable rule:line-length
when: result is failed
# yamllint disable rule:line-length
command: helm repo add stable https://kubernetes-charts.storage.googleapis.com/
# yamllint disable rule:line-length
when: result is failed
+- name: "Updated helm repo"
command: helm repo update
when: result is failed
command: helm repo update
when: result is failed
+- name: "List helm repo"
command: helm repo list
when: result is failed
command: helm repo list
when: result is failed
command: rm -rf linux-amd64/helm
when: result is succeeded and ansible_architecture == 'x86_64'
command: rm -rf linux-amd64/helm
when: result is succeeded and ansible_architecture == 'x86_64'
-- name: Remove download file on x86_64
+- name: Remove download helm file on x86_64
command: rm ~/helm-v3.0.2-linux-amd64.tar.gz
when: result is succeeded and ansible_architecture == 'x86_64'
command: rm ~/helm-v3.0.2-linux-amd64.tar.gz
when: result is succeeded and ansible_architecture == 'x86_64'
command: rm -rf linux-arm64/helm
when: result is succeeded and ansible_architecture == 'aarch64'
command: rm -rf linux-arm64/helm
when: result is succeeded and ansible_architecture == 'aarch64'
-- name: Remove download file on aarch64
+- name: Remove download helm file on aarch64
command: rm helm-v3.0.2-linux-arm64.tar.gz
when: result is succeeded and ansible_architecture == 'aarch64'
command: rm helm-v3.0.2-linux-arm64.tar.gz
when: result is succeeded and ansible_architecture == 'aarch64'
register: result
ignore_errors: true
register: result
ignore_errors: true
-- name: copy common folder to host
+- name: copy common folder to host for rabbitmg installation
copy:
src: common
dest: /tmp/rabbitmq/
when: result is failed
copy:
src: common
dest: /tmp/rabbitmq/
when: result is failed
+- name: Install common for rabbitmg installation
shell:
cmd: kubectl apply -f /tmp/rabbitmq/common
when: result is failed
shell:
cmd: kubectl apply -f /tmp/rabbitmq/common
when: result is failed
-- name: copy statefulset_x86.yaml to host
+- name: copy statefulset_x86.yaml to host for rabbitmg installation
copy:
src: statefulset_x86.yaml
dest: /tmp/rabbitmq/
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'
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
+- name: copy statefulset_arm.yaml to host for rabbitmg installation
copy:
src: statefulset_arm.yaml
dest: /tmp/rabbitmq/
copy:
src: statefulset_arm.yaml
dest: /tmp/rabbitmq/
register: result
ignore_errors: true
register: result
ignore_errors: true
-- name: Uninstall rabbitmq
+- name: Uninstalling rabbitmq
shell:
cmd: kubectl delete -f /tmp/rabbitmq/common
when: result is succeeded
shell:
cmd: kubectl delete -f /tmp/rabbitmq/common
when: result is succeeded