X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fdocker%2Ftasks%2Funinstall.yml;fp=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fdocker%2Ftasks%2Funinstall.yml;h=f5a40f7ab654b310246103205c42f259923420ce;hb=85a634b1ba537e55c8b65404fd4467ad3732c683;hp=f75648959263fcc9535f45a4b6a5563a8423372f;hpb=6246cb1fb8bcd410c6df05ebf9972277ad3010ea;p=eliot.git diff --git a/blueprints/iotgateway/playbooks/roles/docker/tasks/uninstall.yml b/blueprints/iotgateway/playbooks/roles/docker/tasks/uninstall.yml index f756489..f5a40f7 100644 --- a/blueprints/iotgateway/playbooks/roles/docker/tasks/uninstall.yml +++ b/blueprints/iotgateway/playbooks/roles/docker/tasks/uninstall.yml @@ -57,6 +57,26 @@ 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" @@ -65,3 +85,4 @@ cmd: yes | yum remove docker-ce docker-ce-cli containerd.io ignore_errors: yes no_log: true + when: ansible_facts['distribution'] == "CentOS"