This repository contains all exercise descriptions for the Ansible Windows Workshop.
The exercises are build with MkDocs and published to Github pages.
A Dockerfile is included to build a container image which publishes the exercises as a Webserver.
Use the provided
Makefileto setup the development environment!
The all target creates a Python VE with all requirements and installs the provided pre-commit hooks:
make allRunning without specifying a target displays a help message.
Use the clean target to remove the development environment again after you are finished.
Create a Python virtual environment:
python3 -m venv ve-mkdocs-devActivate VE:
source ve-mkdocs-dev/bin/activateInstall requirements from project directory:
pip3 install -r requirements.txtInstall pre-commit package and hooks:
pip3 install -r requirements.txtpre-commit installYou can run all hooks at any time:
pre-commit run -aGet IP address:
hostname -IStart MkDocs built-in dev-server for live-preview:
mkdocs serve -a 172.26.220.226:8080Before opening a pull request make sure you followed the next couple of steps.
- Use the provided
Makefileto create a development environment! - Always preview the changes you made thoroughly, only commit your changes if everything looks as intended!
- Use the provided pre-commit configuration, it will lint your Markdown files and also check for spelling errors!
Use the provided Containerfile if you want to publish the Workshop exercises guide yourself.
Build the image:
podman build -t ansible-windows-workshop .Run a container from the previously build image, the webserver is available at Port 8080:
podman run -d -p 8080:8080/tcp --name workshop ansible-windows-workshop