Sign inSign up

openeuler/ansible

Sponsored OSS

By openeuler

•Updated 10 days ago

Image
0

146

openeuler/ansible repository overview

⁠Quick reference

⁠Ansible | openEuler

Current ansible docker images are built on the openEuler⁠. This repository is free to use and exempted from per-user rate limits.

Ansible is a radically simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy.

Learn more on Ansible Collaborative⁠.

The tag of each ansible docker image is consist of the version of ansible-core and the version of basic image. The details are as follows

TagCurrentlyArchitectures
2.21.4-oe2403sp4⁠ansible-core 2.21.4 on openEuler 24.03-LTS-SP4amd64, arm64

⁠Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/ansible image from docker

    docker pull openeuler/ansible:{Tag}
    
  • Check the installed Ansible version

    docker run --rm openeuler/ansible:{Tag} ansible --version
    
  • Run an Ansible ad-hoc command

    Create an inventory file named inventory in the current directory:

    [web]
    192.168.1.10
    

    Then run:

    docker run --rm -v "$(pwd)":/work -w /work openeuler/ansible:{Tag} \
        ansible web -i inventory -m ping
    
  • Run an Ansible playbook

    Create a playbook named site.yml in the current directory:

    - name: Ping all hosts
      hosts: web
      tasks:
        - name: Ping
          ansible.builtin.ping:
    

    Then run:

    docker run --rm -v "$(pwd)":/work -w /work openeuler/ansible:{Tag} \
        ansible-playbook -i inventory site.yml
    
  • Start a long-running container for exploration

    docker run -d --name my-ansible openeuler/ansible:{Tag} sleep infinity
    
  • View the container logs

    docker logs -f my-ansible
    
  • To get an interactive shell

    docker exec -it my-ansible bash
    

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary

Content type

Image

Digest

sha256:c3cf291d8…

Size

161.5 MB

Last updated

10 days ago

docker pull openeuler/ansible

This week's pulls

Pulls:

42

Last week