Ansible role¶
Step 1. Provide ansible role in as a zip file¶
In your local machine, create a folder
tasks
with one filemain.yml
.
- debug:
msg:
- "Hello! I am an {{ MY_NAME }}"
- "I am running on {{ HOST }}"
Zip the
tasks
folder asconfigure.zip
and upload.

Figure 1. Zip the content of the ansible role¶
Step 2. Upload¶
Upload the
configure.zip
as the artifact configure of the AnsibleRole.

Figure 2. Upload ansible role¶
Step 3. Provide ansible variables¶
In addition to the env
property, users can define ansible variables by providing the artifact ansible_variables:
Define ansible variables in a yml file (e.g.,
myvar.yml
)
MY_NAME: example
Upload
myvar.yml
in the artifact ansible_variables.
Expected result¶
During the deployment, the orchestrator extracts the zip file on the ansible controller, and applies the role on the target compute.
Hello! I am an example
I am running on Compute