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.15.5-python3.10 docker pull icr.io/ibmz/ansible@sha256:aa1134bd935d4bee7f7ef8357e6d718f5c6fd9f46a5313406447e8822653eabd Vulnerability Report10-19-2023
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)