| 2.21.1 | docker pull icr.io/ibmz/ansible@sha256:b5543e702cfbf0b03dc05155c97223e01c4e450b70915e6b9b17e6e01140988c | Vulnerability Report | 06-22-2026 | 2.21.0 | docker pull icr.io/ibmz/ansible@sha256:fb61b2250e311afc6234e8e7c31532015196f0ae444757f2b794e5c5334a3abe | Vulnerability Report | 05-28-2026 | 2.20.5 | docker pull icr.io/ibmz/ansible@sha256:39e40e8735ac69a89b3f58a424b8c56233dcce0841628da776752127bdcffe3b | Vulnerability Report | 05-14-2026 |
| Version | Pull String | Security (IBM Cloud) | Created |
|---|---|---|---|
---
- name: This is a hello-world example
hosts: all
connection: local
tasks:
- name: Create a file called '/tmp/testfile.txt' with the content 'hello world'.
copy:
content: hello worldn
dest: /tmp/testfile.txt
Create a Dockerfile with this content:
FROM icr.io/ibmz/ansible:[version]
COPY hello-world.yml /ansible/
Build this docker image, and run with the below statement to see 'hello world' printed to your terminal.
This is done via the local connection configured in the hello-world.yml file you previously created:
docker build . --tag ansible-test
docker run -i --name ansible ansible-test hello-world.yml
For more information, please look to the official documentation [here.](https://github.com/ansible/ansible)