The objective is to test the bash script, we will use container
$ docker build -f bash/Dockerfile -t provision-bash bash
$ docker run -it --rm --name test-provision provision-bash
The objective is to test the playbook ansible, we will use a container as node
Provision the node with ssh enabled cause ansible node manager communicate with nodes in ssh
$ docker build -f ansible/Dockerfile -t node-ssh .
$ docker run -dit --rm -p 22:22 --name node-1 node-ssh
$ cd ansible
$ ./play.sh