This repo by project for deploy xwiki v. 11.4
2 vagrant machines based on centos 7:
- stage vm ip 192.168.0.240
- prod vm ip 192.168.0.242
Build the image as:
docker build -t <SOMENAME>/ansible .
For example SOMENAME as afinsky:
docker build -t afinsky/ansible .
Test the ansible running inside the container:
docker run --rm -it -v $(pwd):/ansible/playbooks \
afinsky/ansible --version
Clone repo with Jenkinsfile ->
Play Jenkinsfile on node (slave-machine):
-> Clone full repo master branch ->
-> Build image from ansible version 2.7.10 from Dockerfile ->
-> Create container with ansible ->
-> Run playbook on stage-mashine ->
-> Approve if you want run playbook on prod-mashine ->
[if okay] -> Run playbook on prod-mashine ->
-> Remove container with ansible ->
-> Job Status Notification in Slack