Sign inSign up

nertworkweb/ansible

By nertworkweb

•Updated almost 2 years ago

Plain docker ansible install

Image
Networking
Integration & delivery
0

280

nertworkweb/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:dd79eec4c…

Size

288.9 MB

Last updated

almost 2 years ago

docker pull nertworkweb/ansible