This repository houses a Dockerfile for creating a Docker image tailored for Ansible automation. It sets up the necessary dependencies and tools, making it convenient for users to execute Ansible playbooks within a controlled environment.
- Docker installed on your machine
-
Clone the repository:
git clone https://github.com/Think-Cube/DockerAnsible.git
-
Build the Docker image:
docker build -t dockeransible .
-
Run the Docker container:
docker run -it --rm dockeransible
The Dockerfile follows these major steps:
- Update package lists and install required dependencies.
- Install and configure Python, Pip, and other necessary tools.
- Install specified versions of Ansible, Ansible Core, and Ansible Lint.
- Set up the working directory and essential Ansible files.
ANSIBLE_CORE_VERSION
: Version of Ansible Core.ANSIBLE_VERSION
: Version of Ansible.ANSIBLE_LINT
: Version of Ansible Lint.
This project is licensed under the MIT License.
Feel free to contribute by opening issues or pull requests. Your feedback and improvements are highly appreciated!