Return to Image List

ansible

ansible

Ansible is a radically simple IT automation system - handling configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero-downtime rolling updates with load balancers.

See ansible.com for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
2.21.1 docker pull icr.io/ibmz/ansible@sha256:b5543e702cfbf0b03dc05155c97223e01c4e450b70915e6b9b17e6e01140988c Vulnerability Report06-22-2026
2.21.0 docker pull icr.io/ibmz/ansible@sha256:fb61b2250e311afc6234e8e7c31532015196f0ae444757f2b794e5c5334a3abe Vulnerability Report05-28-2026
2.20.5 docker pull icr.io/ibmz/ansible@sha256:39e40e8735ac69a89b3f58a424b8c56233dcce0841628da776752127bdcffe3b Vulnerability Report05-14-2026
Version Pull String Security (IBM Cloud) Created

Usage Notes

(This image contains ansible-core) Below is a straightforward hello-world example using this ansible image..
Save this file as hello-world.yml:

---
- 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)