build
and deploy
tasks.semaphore_vars
variable to each Ansible playbook which it runs.semaphore_vars
for build
tasks:semaphore_vars
for deploy
tasks:semaphore_vars.task_details.target_version
in your Ansible playbook to get what version of the artifact should be created. After the artifact is created, it can be used for deployment.build
Ansible role:app-{{semaphore_vars.task_details.target_version}}.tar.gz
app-{{semaphore_vars.task_details.target_version}}.tar.gz
to S3 bucketsemaphore_vars.task_details.incoming_version
in your Ansible playbook to get what version of the artifact should be deployed.deploy
Ansible role:app-{{semaphore_vars.task_details.incoming_version}}.tar.gz
from S3 bucket to destination serversapp-{{semaphore_vars.task_details.incoming_version}}.tar.gz
to destination directory