From e8ed768d13c29db57378ecb5b1b14146ad52b118 Mon Sep 17 00:00:00 2001 From: Haroon Khel Date: Thu, 15 Feb 2024 13:04:59 +0000 Subject: [PATCH] add comments to new tasks --- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml | 2 ++ .../roles/deploy_container/tasks/deploy.yml | 3 ++- .../roles/deploy_container/tasks/main.yml | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml index 160ca89a3b..50fa31134a 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml @@ -2,6 +2,8 @@ ############################### # Adoptium - Ansible Playbook # ############################### +# This playbook is used to deploy static docker containers onto dockerhost machines +# https://github.com/adoptium/infrastructure/issues/3370 - name: Dockernode playbook hosts: all diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/deploy.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/deploy.yml index 07f2e726ff..f6382e7038 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/deploy.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/deploy.yml @@ -1,10 +1,11 @@ --- - +# Dockerfiles are transferred from the controller node onto the dockerhost to be used to build and run docker containers - name: Transfer dockerfile copy: src: "roles/DockerStatic/Dockerfiles/Dockerfile.{{ docker_image }}" dest: "/tmp/Dockerfile.{{ docker_image }}" +# For images built on non x86_64 dockerhosts - name: Translate architecture in dockerfile replace: dest: /tmp/Dockerfile.{{ docker_image }} diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/main.yml index 33f88d085e..728d9d3680 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/deploy_container/tasks/main.yml @@ -1,5 +1,6 @@ --- - +# This task verifies the docker_images arguments passed into the playbook +# Then runs the deploy.yml task to build and run each image on the dockerhost - name: Set docker images list variable set_fact: docker_images_list: "{{ docker_images.split(',') | list }}"