---
-############ OCD ############
-
-- hosts: ocdconsolidated
- become: yes
- tags:
- - ocdhost
- - ocdconsolidated
-
- roles:
- - eg_helm-repo
- - eg_registry
- - eg_certs
- - helm
- - k8s
- - docker
-
############ Master ############
### EdgeGallery related ###
roles:
- k3s
- docker
+
+############ OCD ############
+
+- hosts: ocdconsolidated
+ become: yes
+ tags:
+ - ocdhost
+ - ocdconsolidated
+
+ roles:
+ - eg_helm-repo
+ - eg_registry
+ - eg_certs
+ - helm
+ - k8s
+ - docker
when: result is succeeded and ansible_architecture == 'aarch64'
#when: result is succeeded
+- name: "UNINSTALL: Uninstall docker engine"
+ command: apt-get purge -y docker-engine
+ ignore_errors: yes
+ when: result is succeeded and ansible_architecture == 'x86_64'
+
+- name: "UNINSTALL: Uninstall docker"
+ command: apt-get purge -y docker
+ ignore_errors: yes
+ when: result is succeeded and ansible_architecture == 'x86_64'
+
+- name: "UNINSTALL: Uninstall docker.io"
+ command: apt-get purge -y docker.io
+ ignore_errors: yes
+ when: result is succeeded and ansible_architecture == 'x86_64'
+
+- name: "UNINSTALL: Uninstall docker.io"
+ command: apt-get purge docker-ce docker-ce-cli containerd.io
+ ignore_errors: yes
+ when: result is succeeded and ansible_architecture == 'x86_64'
+
- debug:
msg: "CentOS commands start"
cmd: yes | yum remove docker-ce docker-ce-cli containerd.io
ignore_errors: yes
no_log: true
+ when: ansible_facts['distribution'] == "CentOS"
ignore_errors: yes
no_log: True
+- name: Delete dns namesapce metallb
+ command: kubectl delete secret memberlist -n metallb-system
+ ignore_errors: yes
+ no_log: True
+
- name: Delete ssl config namesapce mep
command: kubectl delete ns mep
ignore_errors: yes
command: kubectl delete -f /tmp/eg_mep/deploy/conf/edge/metallb/namespace.yaml
ignore_errors: yes
no_log: True
-
-- name: Delete dns namesapce metallb
- command: kubectl delete secret memberlist -n metallb-system
- ignore_errors: yes
- no_log: True