Skip to content

jkaninda/ansible-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Docker Image Size (latest by date) Docker Pulls

Ansible-runner

Ansible runner

Docker container Ansible Runner, play with Ansible using Docker with mulltiple servers

Simple docker-compose.yml file

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

 ssh root@127.0.0.1

Or using docker-compose

docker-compose exec controller bash

Screenshot

About

Docker container Ansible Runner, play with Ansible using Docker with mulltiple servers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors