https://github.com/jkaninda/ansible-runner
Docker container Ansible Runner, play with Ansible using Docker with mulltiple servers
https://github.com/jkaninda/ansible-runner
ansilbe docker rockylinux
Last synced: 6 months ago
JSON representation
Docker container Ansible Runner, play with Ansible using Docker with mulltiple servers
- Host: GitHub
- URL: https://github.com/jkaninda/ansible-runner
- Owner: jkaninda
- Created: 2023-01-08T13:26:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T12:36:39.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T01:16:57.544Z (6 months ago)
- Topics: ansilbe, docker, rockylinux
- Language: Dockerfile
- Homepage:
- Size: 458 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/jkaninda/ansible-runner/actions/workflows/build.yml)


# Ansible-runner
Ansible runnerDocker container Ansible Runner, play with Ansible using Docker with mulltiple servers
> Simple docker-compose.yml file
```yaml
version: "3.8"
services:
controller:
container_name: controller
image: jkaninda/ansible-runner:1.0
hostname: controller
privileged: true
command: sleep 1d
restart: unless-stopped
ports:
- 22:22
volumes:
- ./master/:/root/
networks:
- ansible
server1:
container_name: server1
image: jkaninda/ansible-runner:1.0
hostname: server1
privileged: true
command: sleep 1d
restart: unless-stopped
expose:
- 22
volumes:
- ./worker/.ssh:/root/.ssh/
networks:
- ansible
server2:
container_name: server2
hostname: server2
image: jkaninda/ansible-runner:1.0
privileged: true
command: sleep 1d
restart: unless-stopped
expose:
- 22
volumes:
- ./worker2/.ssh:/root/.ssh/
networks:
- ansible
networks:
ansible:
external: false
name: ansible```
## TO access to the Controller:
### Create /root/.ssh/authorized_keys file and put your public key inside```sh
ssh root@127.0.0.1
```
### Or using docker-compose```sh
docker-compose exec controller bash
```### Screenshot