X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fdocker%2Ftasks%2Finstall.yml;h=649bac931216e1d5cb2cad08bd72ada505affd0b;hb=7d2bf0bf6892cb363e61156577e66d0e655a21e3;hp=f47436923c8aedc9f134e0a70f8c2b3462410bd6;hpb=eb05c8bc1426f5fcc50d03b41ebec552e6db358d;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 f474369..649bac9 100644 --- a/ocd/infra/playbooks/roles/docker/tasks/install.yml +++ b/ocd/infra/playbooks/roles/docker/tasks/install.yml @@ -21,37 +21,48 @@ - debug: msg: Docker is already present - when: result.rc == 0 + when: result.stdout != "" -- name: "Installing docker update" +- 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: "INSTALL: Installing docker update" command: apt-get update -y ignore_errors: yes failed_when: false no_log: True -- name: "Installing docker upgrade" +- name: "INSTALL: Installing docker upgrade" # yamllint disable rule:line-length 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 +- name: "INSTALL: 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" +- name: "INSTALL: CA-Certificates" # yamllint disable rule:line-length shell: sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" # yamllint disable rule:line-length ignore_errors: yes failed_when: false no_log: True + when: result is failed and ansible_architecture == 'aarch64' -- name: "Update....." +- name: "INSTALL: 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" +- name: "INSTALL: 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'