README.md 713 Bytes
Newer Older
1
2
3
4
5
# Goal and scope

This repo aim to develop one or more dockers for testing ansible playbooks.

At maturity, one should be able to use this repo to test a playbook.
6

Jérémy Viau-Trudel's avatar
Jérémy Viau-Trudel committed
7
# Usage
8

Jérémy Viau-Trudel's avatar
Jérémy Viau-Trudel committed
9
## Démarrer, arrêter, redémarrer ou détruire une machine.
10

Jérémy Viau-Trudel's avatar
Jérémy Viau-Trudel committed
11
12
13
14
15
16
17
18
19
20
    ./control start|stop|restart|kill


## Première connection

    cat hosts |grep =| sed 's/=/ /g' | awk '{printf("ssh %s@%s -p %s exit\n", $7, $3, $9)}' | xargs -I % -n 1 sh -c %

## Accéder manuellement à une machine

    ssh root@0.0.0.0 -p 32774
21

Jérémy Viau-Trudel's avatar
Jérémy Viau-Trudel committed
22
23
24
25
26
27
28
29
30
31
## Exécuter le playbook de test

    ansible-playbook dev.yaml


# Supported OS

## Ubuntu 16.04

An ubuntu 16.04 docker with ssh and python. Can only be accessed by user:password. Configuration hosts file example:
32
33
34
35