X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fdocker%2Ftasks%2Finstall.yml;h=e411e1640f8522a17dae19cc9c484d11f355a566;hb=6ce510fccce9b5481e88d10c3ffa73ed0284b517;hp=caded2eaf6f69ef8c0508ffd239144cfaf8694ff;hpb=8d497c78731b91d7c789398aea10605564dbf983;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/docker/tasks/install.yml b/ocd/infra/playbooks/roles/docker/tasks/install.yml index caded2e..e411e16 100644 --- a/ocd/infra/playbooks/roles/docker/tasks/install.yml +++ b/ocd/infra/playbooks/roles/docker/tasks/install.yml @@ -16,15 +16,18 @@ - name: Check whether docker is already installed command: which docker register: result - failed_when: false + ignore_errors: yes no_log: True - debug: msg: Docker is already present - when: result.rc == 0 + when: result.stdout != "" -- meta: end_play - when: result.rc == 0 +- debug: +# yamllint disable rule:line-length + msg: Ignore Uninstall Log , Docker not installed continue with Installation +# yamllint disable rule:line-length + when: result.stdout == "" - name: "Installing docker update" command: apt-get update -y @@ -37,9 +40,11 @@ command: apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common # yamllint disable rule:line-length ignore_errors: yes + when: result is failed and ansible_architecture == 'aarch64' - name: Add repository shell: curl -sL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + when: result is failed and ansible_architecture == 'aarch64' - name: "CA-Certificates" # yamllint disable rule:line-length @@ -48,13 +53,16 @@ ignore_errors: yes failed_when: false no_log: True + when: result is failed and ansible_architecture == 'aarch64' - name: "Update....." command: apt-get update -y ignore_errors: yes failed_when: false no_log: True + when: result is failed and ansible_architecture == 'aarch64' - name: "Installed docker" command: apt-get install -y docker-ce docker-ce-cli containerd.io ignore_errors: yes + when: result is failed and ansible_architecture == 'aarch64'