Sign inSign up

nertwork/docker-ansible

By nertwork

•Updated 5 days ago

Ansible in docker

Image
Integration & delivery
0

3.2K

nertwork/docker-ansible repository overview

⁠Ansible Docker Container

This Docker container provides a pre-installed environment for running Ansible with all necessary dependencies. It simplifies the execution of automation tasks by eliminating the need for manual setup.


⁠Features

  • Preinstalled Ansible: Latest stable version of Ansible CLI tools (ansible, ansible-playbook, ansible-galaxy).
  • Preinstalled Dependencies: Python libraries (boto3, netaddr, pywinrm) and system utilities.
  • Customizable Configuration: Mount your playbooks, inventory, and custom configuration files.
  • SSH Support: Includes OpenSSH for secure communication with remote systems.
  • Network Tools: curl, ping, jq, and other debugging utilities.

⁠Usage

⁠Build the Image

Use the following Dockerfile to build the image:

# Dockerfile
FROM python:3.11-slim

# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    sshpass \
    openssh-client \
    jq \
    curl \
    && pip install --no-cache-dir ansible boto3 netaddr pywinrm \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Set a working directory
WORKDIR /ansible

# Default command to show Ansible version
CMD ["ansible", "--version"]

Tag summary

Content type

Image

Digest

sha256:32f20bb76…

Size

226.8 MB

Last updated

5 days ago

docker pull nertwork/docker-ansible